So I'm writing a script where if the player steps on a green S tile with a script, then a person event rushes up to them, says some stuff, then battles them, and leaves. I wanted the person event to be hidden until the script is activated (to make it seem like they were coming from afar) and I also want the person to be hidden after the script is done. This is what is have and it doesn't work. The script just freezes.
I also included the pictures of it in advance map, in case there was something wrong there.
Spoiler:
'---------------
#org 0x800000
checkflag 0x8C3
if 0x1 goto 0x8800041
msgbox 0x8800047 MSG_KEEPOPEN '"Hey, À! Wait up!"
applymovement MOVE_PLAYER 0x8800043
waitmovement 0x0
applymovement 0x3 0x880005A
waitmovement 0x0
msgbox 0x8800066 MSG_NORMAL '"I'm glad I caught up to you!\nSo y..."
trainerbattle 0x1 0x142 0x0 0x8800135 0x8800153 0x8800175
end
'---------------
#org 0x800041
end
'---------------
#org 0x800175
msgbox 0x8800186 MSG_NORMAL '"Well, you are still amazing as\nev..."
applymovement 0x3 0x880022D
end
'---------
' Strings
'---------
#org 0x800047
= Hey, À! Wait up!
#org 0x800066
= I'm glad I caught up to you!\nSo you're this far ahead already?!\pWell, the reason I was behind was\nbecause I wanted to tell Mom bye.\p...You should have done it too.\pHey, is that your Pokémon?\nLet's battle!
#org 0x800135
= You're going down, brother!
#org 0x800153
= Of course, you just had to win.
#org 0x800186
= Well, you are still amazing as\never...\pI'm planning to go to Jikan Town\nnow, but I got to take care of\lsome things back at Yuki Town.\pAlright, well catch you later!
'-----------
' Movements
'-----------
#org 0x800043
#raw 0x4 'Face Down (Faster)
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0xFE 'End of Movements
#org 0x80005A
#raw 0x61 'Show
#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 0x53 'Jump in Place (Facing Up)
#raw 0x66 'Happy (^_^)
#raw 0xFE 'End of Movements
#org 0x80022D
#raw 0x0 'Face Down
#raw 0x17 'Jump2 Right
#raw 0x16 'Jump2 Left
#raw 0x4 'Face Down (Faster)
#raw 0x64 'Cross (X)
#raw 0x52 'Jump in Place (Facing Down)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements
#org 0x800000
checkflag 0x8C3
if 0x1 goto 0x8800041
msgbox 0x8800047 MSG_KEEPOPEN '"Hey, À! Wait up!"
applymovement MOVE_PLAYER 0x8800043
waitmovement 0x0
applymovement 0x3 0x880005A
waitmovement 0x0
msgbox 0x8800066 MSG_NORMAL '"I'm glad I caught up to you!\nSo y..."
trainerbattle 0x1 0x142 0x0 0x8800135 0x8800153 0x8800175
end
'---------------
#org 0x800041
end
'---------------
#org 0x800175
msgbox 0x8800186 MSG_NORMAL '"Well, you are still amazing as\nev..."
applymovement 0x3 0x880022D
end
'---------
' Strings
'---------
#org 0x800047
= Hey, À! Wait up!
#org 0x800066
= I'm glad I caught up to you!\nSo you're this far ahead already?!\pWell, the reason I was behind was\nbecause I wanted to tell Mom bye.\p...You should have done it too.\pHey, is that your Pokémon?\nLet's battle!
#org 0x800135
= You're going down, brother!
#org 0x800153
= Of course, you just had to win.
#org 0x800186
= Well, you are still amazing as\never...\pI'm planning to go to Jikan Town\nnow, but I got to take care of\lsome things back at Yuki Town.\pAlright, well catch you later!
'-----------
' Movements
'-----------
#org 0x800043
#raw 0x4 'Face Down (Faster)
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0xFE 'End of Movements
#org 0x80005A
#raw 0x61 'Show
#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 0x53 'Jump in Place (Facing Up)
#raw 0x66 'Happy (^_^)
#raw 0xFE 'End of Movements
#org 0x80022D
#raw 0x0 'Face Down
#raw 0x17 'Jump2 Right
#raw 0x16 'Jump2 Left
#raw 0x4 'Face Down (Faster)
#raw 0x64 'Cross (X)
#raw 0x52 'Jump in Place (Facing Down)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0xC 'Step Down (Slow)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements
I also included the pictures of it in advance map, in case there was something wrong there.