Danny0317
Fluorite's back, brah
- 1,066
- Posts
- 11
- Years
- Age 25
- Seen Nov 19, 2023
Well here's my script, it works perfectly, unless the player says no in the 0x5 part.
If the player says no what should happen is that the screen fades to black, and a few message boxes happen, a flag is set, sprites dissapear and that's it. But instead what's happening is that the script goes to the beggining of the script instead. It's a level script, by the way. Thanks in advanced. :)
Spoiler:
'---------------
#org 0x71C2D0
#raw 0x2
#raw pointer 0x871C2D6
#raw 0x0
'---------------
#org 0x71C2D6
#raw word 0x4001
#raw word 0x0
#raw pointer 0x880A6B0
#raw word 0x0
'---------------
#org 0x80A6B0
lock
checkflag 0x20A
if 0x1 goto 0x880A821
applymovement MOVE_PLAYER 0x880A824
waitmovement 0x0
msgbox 0x880A749 MSG_NORMAL '"[blue_fr]This region, no, this worl..."
msgbox 0x880A77C MSG_NORMAL '"[red_fr]No! Look at this! Are you\..."
msgbox 0x880A827 MSG_NORMAL '"[blue_fr]Stupid? Are YOU calling M..."
msgbox 0x880A84F MSG_NORMAL '"[red_fr]Ugh, I don't have time for..."
applymovement 0x4 0x880A879
applymovement 0x1 0x880A875
waitmovement 0x0
applymovement 0x4 0x880A87C
applymovement 0x2 0x880A824
applymovement 0x3 0x880A824
applymovement 0x5 0x880A824
applymovement 0x6 0x880A824
msgbox 0x880A880 MSG_NORMAL '"[orange_fr]You monster!"
msgbox 0x880A892 MSG_NORMAL '"[lightblue_fr]How could you hit he..."
msgbox 0x880A8AE MSG_YESNO '"[green_fr]Should I help her?"
compare LASTRESULT 0x1
if 0x1 goto 0x880A8C6
compare LASTRESULT 0x0
if 0x0 goto 0x880AA82
setvar 0x4001 0x1
releaseall
end
'---------------
#org 0x80A821
setvar 0x4001 0x1
releaseall
end
'---------------
#org 0x80A8C6
applymovement MOVE_PLAYER 0x880A99D
waitmovement 0x0
msgbox 0x880A9A4 MSG_NORMAL '"[blue_fr]Well, well! Who do we hav..."
msgbox 0x880A9CB MSG_NORMAL '"[green_fr]My name is [player], and..."
msgbox 0x880A9FF MSG_NORMAL '"[blue_fr]You're going to take me d..."
trainerbattle 0x3 0x1 0x0 0x880AA28
msgbox 0x880AA31 MSG_NORMAL '"[blue_fr]You got lucky! I'll get y..."
applymovement 0x1 0x880AA6D
waitmovement 0x0
hidesprite 0x1
special 0x8E
msgbox 0x880A928 MSG_NORMAL '"[red_fr]I'll be leaving too.. Than..."
applymovement 0x4 0x880AA77
waitmovement 0x0
hidesprite 0x4
setflag 0x20A
special 0x8E
setvar 0x4001 0x1
releaseall
end
'---------------
#org 0x80AA82
fadescreen 0x1
msgbox 0x880AAAB MSG_NORMAL '"[blue_fr]Haha! No one insults us A..."
msgbox 0x880AAFC MSG_NORMAL '"[red_fr]N-n-no! P-please don't tak..."
hidesprite 0x1
special 0x8E
hidesprite 0x4
special 0x8E
setflag 0x20A
special 0x8E
fadescreen 0x0
releaseall
setvar 0x4001 0x1
end
'---------
' Strings
'---------
#org 0x80A749
= [blue_fr]This region, no, this world\nneeds more water!
#org 0x80A77C
= [red_fr]No! Look at this! Are you\nstupid? This region already has a\llot of water! So did Hoenn! You\lguys need to stop interferring!\lWhat this world needs is more\lland!
#org 0x80A827
= [blue_fr]Stupid? Are YOU calling ME\nstupid?
#org 0x80A84F
= [red_fr]Ugh, I don't have time for\nthis.
#org 0x80A880
= [orange_fr]You monster!
#org 0x80A892
= [lightblue_fr]How could you hit her?
#org 0x80A8AE
= [green_fr]Should I help her?
#org 0x80A9A4
= [blue_fr]Well, well! Who do we have here?\n
#org 0x80A9CB
= [green_fr]My name is [player], and I'm\ngoing to take you down!
#org 0x80A9FF
= [blue_fr]You're going to take me down?\nCute!
#org 0x80AA28
= What?!
#org 0x80AA31
= [blue_fr]You got lucky! I'll get you next\ntime, you stupid kid!
#org 0x80A928
= [red_fr]I'll be leaving too.. Thanks\nkid, but you better not mess with\lTeam Aqua or Magma.. We're both\lvery dangerous..
#org 0x80AAAB
= [blue_fr]Haha! No one insults us Aquas\nand gets away with it! You're\lcoming with me!
#org 0x80AAFC
= [red_fr]N-n-no! P-please don't take me!\nNO!!!
'-----------
' Movements
'-----------
#org 0x80A824
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements
#org 0x80A879
#raw 0x4 'Face Down (Faster)
#raw 0xFE 'End of Movements
#org 0x80A875
#raw 0x62 'Exclamation Mark (!)
#raw 0x21 'Step on the Spot Down (Normal)
#raw 0xFE 'End of Movements
#org 0x80A87C
#raw 0x4E 'Jump Down
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
#org 0x80A99D
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
#org 0x80AA6D
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements
#org 0x80AA77
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements
#org 0x71C2D0
#raw 0x2
#raw pointer 0x871C2D6
#raw 0x0
'---------------
#org 0x71C2D6
#raw word 0x4001
#raw word 0x0
#raw pointer 0x880A6B0
#raw word 0x0
'---------------
#org 0x80A6B0
lock
checkflag 0x20A
if 0x1 goto 0x880A821
applymovement MOVE_PLAYER 0x880A824
waitmovement 0x0
msgbox 0x880A749 MSG_NORMAL '"[blue_fr]This region, no, this worl..."
msgbox 0x880A77C MSG_NORMAL '"[red_fr]No! Look at this! Are you\..."
msgbox 0x880A827 MSG_NORMAL '"[blue_fr]Stupid? Are YOU calling M..."
msgbox 0x880A84F MSG_NORMAL '"[red_fr]Ugh, I don't have time for..."
applymovement 0x4 0x880A879
applymovement 0x1 0x880A875
waitmovement 0x0
applymovement 0x4 0x880A87C
applymovement 0x2 0x880A824
applymovement 0x3 0x880A824
applymovement 0x5 0x880A824
applymovement 0x6 0x880A824
msgbox 0x880A880 MSG_NORMAL '"[orange_fr]You monster!"
msgbox 0x880A892 MSG_NORMAL '"[lightblue_fr]How could you hit he..."
msgbox 0x880A8AE MSG_YESNO '"[green_fr]Should I help her?"
compare LASTRESULT 0x1
if 0x1 goto 0x880A8C6
compare LASTRESULT 0x0
if 0x0 goto 0x880AA82
setvar 0x4001 0x1
releaseall
end
'---------------
#org 0x80A821
setvar 0x4001 0x1
releaseall
end
'---------------
#org 0x80A8C6
applymovement MOVE_PLAYER 0x880A99D
waitmovement 0x0
msgbox 0x880A9A4 MSG_NORMAL '"[blue_fr]Well, well! Who do we hav..."
msgbox 0x880A9CB MSG_NORMAL '"[green_fr]My name is [player], and..."
msgbox 0x880A9FF MSG_NORMAL '"[blue_fr]You're going to take me d..."
trainerbattle 0x3 0x1 0x0 0x880AA28
msgbox 0x880AA31 MSG_NORMAL '"[blue_fr]You got lucky! I'll get y..."
applymovement 0x1 0x880AA6D
waitmovement 0x0
hidesprite 0x1
special 0x8E
msgbox 0x880A928 MSG_NORMAL '"[red_fr]I'll be leaving too.. Than..."
applymovement 0x4 0x880AA77
waitmovement 0x0
hidesprite 0x4
setflag 0x20A
special 0x8E
setvar 0x4001 0x1
releaseall
end
'---------------
#org 0x80AA82
fadescreen 0x1
msgbox 0x880AAAB MSG_NORMAL '"[blue_fr]Haha! No one insults us A..."
msgbox 0x880AAFC MSG_NORMAL '"[red_fr]N-n-no! P-please don't tak..."
hidesprite 0x1
special 0x8E
hidesprite 0x4
special 0x8E
setflag 0x20A
special 0x8E
fadescreen 0x0
releaseall
setvar 0x4001 0x1
end
'---------
' Strings
'---------
#org 0x80A749
= [blue_fr]This region, no, this world\nneeds more water!
#org 0x80A77C
= [red_fr]No! Look at this! Are you\nstupid? This region already has a\llot of water! So did Hoenn! You\lguys need to stop interferring!\lWhat this world needs is more\lland!
#org 0x80A827
= [blue_fr]Stupid? Are YOU calling ME\nstupid?
#org 0x80A84F
= [red_fr]Ugh, I don't have time for\nthis.
#org 0x80A880
= [orange_fr]You monster!
#org 0x80A892
= [lightblue_fr]How could you hit her?
#org 0x80A8AE
= [green_fr]Should I help her?
#org 0x80A9A4
= [blue_fr]Well, well! Who do we have here?\n
#org 0x80A9CB
= [green_fr]My name is [player], and I'm\ngoing to take you down!
#org 0x80A9FF
= [blue_fr]You're going to take me down?\nCute!
#org 0x80AA28
= What?!
#org 0x80AA31
= [blue_fr]You got lucky! I'll get you next\ntime, you stupid kid!
#org 0x80A928
= [red_fr]I'll be leaving too.. Thanks\nkid, but you better not mess with\lTeam Aqua or Magma.. We're both\lvery dangerous..
#org 0x80AAAB
= [blue_fr]Haha! No one insults us Aquas\nand gets away with it! You're\lcoming with me!
#org 0x80AAFC
= [red_fr]N-n-no! P-please don't take me!\nNO!!!
'-----------
' Movements
'-----------
#org 0x80A824
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements
#org 0x80A879
#raw 0x4 'Face Down (Faster)
#raw 0xFE 'End of Movements
#org 0x80A875
#raw 0x62 'Exclamation Mark (!)
#raw 0x21 'Step on the Spot Down (Normal)
#raw 0xFE 'End of Movements
#org 0x80A87C
#raw 0x4E 'Jump Down
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
#org 0x80A99D
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
#org 0x80AA6D
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements
#org 0x80AA77
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements
If the player says no what should happen is that the screen fades to black, and a few message boxes happen, a flag is set, sprites dissapear and that's it. But instead what's happening is that the script goes to the beggining of the script instead. It's a level script, by the way. Thanks in advanced. :)