For some reason when you select that menu option that goes to the text box, it automatically plays the ambient music of the map you teleport to by selecting the "no" option (otherwise the ELSE section in the second script) before you even make a choice.
This leads me to believe that the tag that is supposed to be checked is getting checked prematurely and already teleporting you to the map as if you chose the NO option from the text box; which is pretty annoying. I'm sure it's a simple fix, but I can't seem to figure it out. I feel pretty certain that it has to do with the loop in the BACKDROP script because everything worked fine until I created that.
Sorry if the code is a little messy or not clean. The SEQUENCE script in particular is from 2007, so I'm sure it could be simplified nowadays.
Here's the menu/backdrop script:
Code: Select all
script, backdrop, begin
play song (28)
open menu (3,false)
while (checktag (tag:backdrop loop) == off) do (
show backdrop (45)
wait (5)
show backdrop (46)
wait (5)
)
show map
endCode: Select all
script, sequence, begin
stop song
suspendplayer
showtextbox (76)
wait for all
show map
if (checktag (tag:Intro) == 1) then (
suspendboxadvance
fadescreenout (0, 0, 0)
teleporttomap (map:Burg Intro, 0, 0)
waitforall
fadescreenin
focuscamera (8, 13, 2)
waitforcamera
focuscamera (18, 21, 2)
showtextbox (1)
wait (80)
advancetextbox
waitforcamera
focuscamera (18, 31, 2)
waitforcamera
focuscamera (32, 31, 2)
showtextbox (2)
wait (80)
advancetextbox
waitforcamera
focuscamera (40, 40, 2)
waitforcamera
focuscamera (49, 12, 2)
settag (235, on)
showtextbox (3)
wait (80)
advancetextbox
waitforcamera
fadescreenout (0, 0, 0)
camerafollowshero (me)
teleporttomap (map:Burg Castle Intro, 4, 4)
waitforcamera
fadescreenin
waitforall
focuscamera (25, 21, 2)
showtextbox (4)
wait (80)
advancetextbox
waitforcamera
wait (100)
tweakpalette (-10, -10, -10, 0, 255)
updatepalette
playsound (sfx:Quake, false, false)
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
fadescreenout (0, 0, 0)
waitforall
camerafollowshero (me)
teleporttomap (map:World Map Intro, 8, 11)
waitforcamera
stopsound (sfx:Quake)
waitforall
fadescreenin
playsound (sfx:Quake, false, false)
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
pancamera (up, 3, 25)
waitforcamera
pancamera (down, 3, 25)
waitforcamera
focuscamera (8, 21, 2)
waitforcamera
focuscamera (8, 35, 5)
waitforcamera
focuscamera (8, 46, 10)
waitforcamera
focuscamera (8, 72, 15)
wait (50)
suspendnpcs
fadescreenout (0, 0, 0)
camerafollowshero (me)
teleporttomap (map:Larry Intro, 10, 0)
setnpcdirection (1, 3)
waitforall
fadescreenin
wait (80)
setnpcdirection (1, 2)
wait (80)
walknpc (1, down, 12)
focuscamera (17, 14, 2)
waitfornpc (1)
destroy npc (1)
waitforall
wait (30)
fadescreenout (0, 0, 0)
camerafollowshero (me)
teleporttomap (map:Shore Intro, 8, 65)
waitforall
fadescreenin
waitforall
focuscamera (8, 9, 2)
showtextbox (361)
wait (80)
advancetextbox
waitforcamera
wait (325)
waitforall
walknpc (2, right, 8)
waitfornpc (2)
walknpc (2, down, 6)
waitfornpc (2)
setnpcdirection (2, 1)
waitfornpc (2)
wait (15)
setnpcdirection (2, 3)
waitfornpc (2)
wait (15)
setnpcdirection (2, 1)
waitfornpc (2)
wait (15)
setnpcdirection (2, 3)
waitfornpc (2)
wait (15)
setnpcdirection (2, 2)
waitfornpc (2)
wait (15)
walknpc (2, down, 3)
waitfornpc (2)
wait (15)
alterNPC (2, NPCstat:picture, 20)
suspendobstruction
setnpcspeed (2, 1)
setnpcspeed (1, 1)
wait (30)
walknpc (2, up, 9)
wait (1)
walknpc (1, up, 9)
waitforall
fadescreenout (0, 0, 0)
teleporttomap (map:Derf Interior, 7, 6)
stopsong
setheroposition (0, 1, 4)
camerafollowshero (me)
setheropicture (0, 22, outside battle)
setheropalette (0, 15, outside battle)
setherodirection (me, down)
waitforhero (me)
alterNPC (2, NPCstat:picture, 19)
waitfornpc (2)
waitforall
resetpalette
updatepalette
fadescreenin
walknpc (2, right, 3)
waitfornpc (2)
walknpc (2, up, 1)
waitfornpc (2)
wait (30)
fadescreenout (0, 0, 0)
alterNPC (2, NPCstat:picture, 23)
setNPCposition (2, 9, 4)
setnpcdirection (2, 0)
setherospeed (0, 2)
resumeobstruction
waitforall
stopsong
wait (80)
fadescreenin
wait (15)
playsound (sfx:Mine, false, false)
setnpcdirection (2, 2)
waitfornpc (2)
wait (15)
setnpcdirection (2, 0)
waitfornpc (2)
wait (17)
playsound (sfx:Mine, false, false)
setnpcdirection (2, 2)
waitfornpc (2)
wait (17)
setnpcdirection (2, 0)
waitfornpc (2)
wait (17)
playsound (sfx:Mine, false, false)
setnpcdirection (2, 2)
waitfornpc (2)
wait (17)
setnpcdirection (2, 0)
waitfornpc (2)
wait (17)
playsound (sfx:Mine, false, false)
setnpcdirection (2, 2)
waitfornpc (2)
wait (13)
setnpcdirection (2, 0)
waitfornpc (2)
wait (17)
fadescreenout (0, 0, 0)
alterNPC (2, NPCstat:picture, 19)
setNPCposition (2, 3, 6)
setnpcdirection (2, 3)
resumeboxadvance
waitforall
wait (80)
fadescreenin
playsong (song:Derf)
wait (100)
setherodirection (me, right)
waitforhero (me)
wait (30)
setherodirection (me, down)
waitforhero (me)
wait (15)
setherodirection (me, right)
waitforhero (me)
wait (50)
setherodirection (me, down)
waitforhero (me)
wait (50)
setherodirection (me, up)
waitforhero (me)
wait (30)
setnpcdirection (2, 0)
waitfornpc (2)
wait (30)
showtextbox (5)
waitfortextbox
walknpc (2, up, 1)
waitfornpc (2)
walknpc (2, left, 1)
waitfornpc (2)
walknpc (2, up, 1)
waitfornpc (2)
setnpcdirection (2, 3)
waitfornpc (2)
showtextbox (6)
waitfortextbox
setherodirection (me, right)
waitforhero (me)
wait (5)
setherodirection (me, up)
waitforhero (me)
wait (5)
setherodirection (me, right)
waitforhero (me)
wait (5)
setherodirection (me, up)
waitforhero (me)
wait (5)
setherodirection (me, right)
waitforhero (me)
wait (5)
setherodirection (me, up)
waitforhero (me)
wait (5)
showtextbox (8)
waitfortextbox
walknpc (2, down, 1)
waitfornpc (2)
walknpc (2, right, 4)
waitfornpc (2)
setnpcdirection (2, 3)
waitfornpc (2)
showtextbox (9)
waitfortextbox
walknpc (2, left, 1)
waitfornpc (2)
walknpc (2, up, 1)
waitfornpc (2)
showtextbox (13)
waitfortextbox
setnpcdirection (2, 3)
waitfornpc (2)
wait (15)
setnpcdirection (2, 2)
waitfornpc (2)
wait (15)
showtextbox (14)
waitfortextbox
suspendherowalls
setheropicture (0, 11, outside battle)
walkhero (me, right, 1)
waitforhero (me)
walkhero (me, down, 1)
waitforhero (me)
walkhero (me, right, 1)
waitforhero (me)
showtextbox (15)
waitfortextbox
setherodirection (me, down)
waitforhero (me)
setheropicture (0, 43, outside battle)
wait (15)
showtextbox (17)
waitfortextbox
wait (65)
showtextbox (189)
waitfortextbox
walknpc (2, down, 1)
waitfornpc (2)
walknpc (2, left, 1)
waitfornpc (2)
setheropicture (0, 11, outside battle)
setherodirection (me, right)
waitforhero (me)
wait (30)
showtextbox (190)
waitfortextbox
walknpc (2, right, 1)
waitfornpc (2)
setnpcdirection (2, 3)
waitfornpc (2)
showtextbox (18)
waitfortextbox
fadescreenout (0, 0, 0)
stopsong
playsong (song:Sleep)
setheroposition (0, 2, 4)
waitforhero (me)
setherodirection (me, down)
setNPCposition (2, 3, 6)
wait (75)
waitfornpc (2)
waitforall
fadescreenin
stopsong
playsong (song:Derf)
wait (25)
setnpcdirection (2, 0)
waitfornpc (2)
showtextbox (21)
waitfortextbox
walkhero (me, down, 1)
waitforhero (me)
walkhero (me, right, 1)
waitforhero (me)
setherodirection (me, down)
waitforhero (me)
showtextbox (22)
waitfortextbox
forceequip (0, slot:Chest, item:Brigand)
forceequip (0, slot:Arms, item:Chain)
forceequip (0, slot:Legs, item:Chain 2)
forceequip (0, slot:Weapon, item:Epee)
getitem (item:Ribeye, 2)
getitem (item:Grape, 2)
getitem (item:Fabric, 1)
setherospeed (0, 4)
)
else (
forceequip (0, slot:Chest, item:Brigand)
forceequip (0, slot:Arms, item:Chain)
forceequip (0, slot:Legs, item:Chain 2)
forceequip (0, slot:Weapon, item:Epee)
getitem (item:Ribeye, 2)
getitem (item:Grape, 2)
getitem (item:Fabric, 1)
setherospeed (0, 4)
setheropicture (0, 11, outside battle)
setheropalette (0, 15, outside battle)
teleporttomap (map:Derf Interior, 7, 6)
)
waitforall
resumenpcs
resumeplayer
resumeherowalls
resumeobstruction
end