Game Freezes in Slateport City Battle Tent after you save and walk in with the Scientist guy.
'---------------
#org 0x208E65
compare 0x8006 0x1
if 0x1 goto 0x8208EEE
setvar 0x4000 0x1
applymovement 0x1 0x8209062
applymovement MOVE_PLAYER 0x8209059
waitmovement 0x0
compare 0x8006 0x2
if 0x1 goto 0x8209044
setvar 0x8004 0x9
special 0xF7
setvar 0x8004 0x8
special 0xF7
msgbox 0x825A1C8 MSG_KEEPOPEN '"First, we will hold your Pokémon f..."
fadescreen 0x1
setvar 0x8004 0x6
special 0xF7
waitstate
msgbox 0x825AB96 MSG_KEEPOPEN '"Right this way, please!"
closeonkeypress
applymovement 0x1 0x82725A6
waitmovement 0x0
setdooropened 0x2 0x1
doorchange
applymovement 0x1 0x8209068
applymovement MOVE_PLAYER 0x820905E
waitmovement 0x0
setdoorclosed 0x2 0x1
doorchange
warp 0x9 0x4 0xFF 0x4 0x4
waitstate
end
'---------------
#org 0x208EEE
setvar 0x8004 0x9
special 0xF1
setvar 0x8004 0x10
special 0xF1
msgbox 0x825A22D MSG_KEEPOPEN '"Thank you for competing!\nLet us r..."
fanfare 0x170
waitfanfare
special 0x0
setvar 0x8004 0x1
setvar 0x8005 0x2
special 0xEA
compare LASTRESULT 0x1
if 0x1 call 0x8209014
compare LASTRESULT 0x2
if 0x1 call 0x820901B
multichoice 0x14 0x6 0x68 0x1
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x8208FBB
compare 0x8000 0x1
if 0x1 goto 0x8208F5B
compare 0x8000 0x2
if 0x1 goto 0x8208F89
msgbox 0x825A350 MSG_YESNO '"Would you like to save and quit\nt..."
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x8208F0D
compare 0x8000 0x1
if 0x1 goto 0x8209022
compare 0x8000 0x7F
if 0x1 goto 0x8208F0D
preparemsg 0x825A37A '"Would you like to retire from your..."
waitmsg
multichoice2 0x14 0x8 0x5E 0x1 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto 0x8208F0D
compare 0x8000 0x0
if 0x1 goto 0x8209A1B
compare 0x8000 0x7F
if 0x1 goto 0x8208F0D
setvar 0x8004 0x8
special 0xF7
msgbox 0x825AB2E MSG_YESNO '"Before starting the battle, would ..."
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x8208EB4
compare 0x8000 0x1
if 0x1 goto 0x8208FF1
compare 0x8000 0x7F
if 0x1 goto 0x8208EB4
fadescreen 0x1
setvar 0x8004 0x7
special 0xF7
waitstate
compare LASTRESULT 0x1
if 0x1 goto 0x8208EB4
msgbox 0x825AB6C MSG_KEEPOPEN '"Thank you!\nYour Pokémon swap is c..."
goto 0x8208EB4
'---------------
#org 0x209044
special 0x28
setvar 0x8004 0xA
setvar 0x8005 0x0
special 0xF1
goto 0x8208F0D
'---------------
#org 0x209014
preparemsg 0x825A263 '"The 2nd match is next!\nAre you re..."
waitmsg
return
'---------------
#org 0x20901B
preparemsg 0x825A289 '"The 3rd match is next!\nAre you re..."
waitmsg
return
'---------------
#org 0x208FBB
setvar 0x8004 0x8
special 0xF7
msgbox 0x825AB2E MSG_YESNO '"Before starting the battle, would ..."
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x8208EB4
compare 0x8000 0x1
if 0x1 goto 0x8208FF1
compare 0x8000 0x7F
if 0x1 goto 0x8208EB4
fadescreen 0x1
setvar 0x8004 0x7
special 0xF7
waitstate
compare LASTRESULT 0x1
if 0x1 goto 0x8208EB4
msgbox 0x825AB6C MSG_KEEPOPEN '"Thank you!\nYour Pokémon swap is c..."
goto 0x8208EB4
'---------------
#org 0x208F5B
msgbox 0x825A350 MSG_YESNO '"Would you like to save and quit\nt..."
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x8208F0D
compare 0x8000 0x1
if 0x1 goto 0x8209022
compare 0x8000 0x7F
if 0x1 goto 0x8208F0D
preparemsg 0x825A37A '"Would you like to retire from your..."
waitmsg
multichoice2 0x14 0x8 0x5E 0x1 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto 0x8208F0D
compare 0x8000 0x0
if 0x1 goto 0x8209A1B
compare 0x8000 0x7F
if 0x1 goto 0x8208F0D
setvar 0x8004 0x8
special 0xF7
msgbox 0x825AB2E MSG_YESNO '"Before starting the battle, would ..."
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x8208EB4
compare 0x8000 0x1
if 0x1 goto 0x8208FF1
compare 0x8000 0x7F
if 0x1 goto 0x8208EB4
fadescreen 0x1
setvar 0x8004 0x7
special 0xF7
waitstate
compare LASTRESULT 0x1
if 0x1 goto 0x8208EB4
msgbox 0x825AB6C MSG_KEEPOPEN '"Thank you!\nYour Pokémon swap is c..."
goto 0x8208EB4
'---------------
#org 0x208F89
preparemsg 0x825A37A '"Would you like to retire from your..."
waitmsg
multichoice2 0x14 0x8 0x5E 0x1 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto 0x8208F0D
compare 0x8000 0x0
if 0x1 goto 0x8209A1B
compare 0x8000 0x7F
if 0x1 goto 0x8208F0D
setvar 0x8004 0x8
special 0xF7
msgbox 0x825AB2E MSG_YESNO '"Before starting the battle, would ..."
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x8208EB4
compare 0x8000 0x1
if 0x1 goto 0x8208FF1
compare 0x8000 0x7F
if 0x1 goto 0x8208EB4
fadescreen 0x1
setvar 0x8004 0x7
special 0xF7
waitstate
compare LASTRESULT 0x1
if 0x1 goto 0x8208EB4
msgbox 0x825AB6C MSG_KEEPOPEN '"Thank you!\nYour Pokémon swap is c..."
goto 0x8208EB4
'---------------
#org 0x208F0D
setvar 0x8004 0x1
setvar 0x8005 0x2
special 0xEA
compare LASTRESULT 0x1
if 0x1 call 0x8209014
compare LASTRESULT 0x2
if 0x1 call 0x820901B
multichoice 0x14 0x6 0x68 0x1
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x8208FBB
compare 0x8000 0x1
if 0x1 goto 0x8208F5B
compare 0x8000 0x2
if 0x1 goto 0x8208F89
msgbox 0x825A350 MSG_YESNO '"Would you like to save and quit\nt..."
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x8208F0D
compare 0x8000 0x1
if 0x1 goto 0x8209022
compare 0x8000 0x7F
if 0x1 goto 0x8208F0D
preparemsg 0x825A37A '"Would you like to retire from your..."
waitmsg
multichoice2 0x14 0x8 0x5E 0x1 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto 0x8208F0D
compare 0x8000 0x0
if 0x1 goto 0x8209A1B
compare 0x8000 0x7F
if 0x1 goto 0x8208F0D
setvar 0x8004 0x8
special 0xF7
msgbox 0x825AB2E MSG_YESNO '"Before starting the battle, would ..."
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x8208EB4
compare 0x8000 0x1
if 0x1 goto 0x8208FF1
compare 0x8000 0x7F
if 0x1 goto 0x8208EB4
fadescreen 0x1
setvar 0x8004 0x7
special 0xF7
waitstate
compare LASTRESULT 0x1
if 0x1 goto 0x8208EB4
msgbox 0x825AB6C MSG_KEEPOPEN '"Thank you!\nYour Pokémon swap is c..."
goto 0x8208EB4
'---------------
#org 0x209022
preparemsg 0x825ABAE '"I am saving your data.\nPlease wai..."
waitmsg
setvar 0x8004 0x3
setvar 0x8005 0x2
special 0xF7
sound 0x37
checksound
fadescreen 0x1
setvar 0x8004 0x4
special 0xEA
end
'---------------
#org 0x209A1B
setvar 0x8004 0x2
setvar 0x8005 0x0
setvar 0x8006 0x4
special 0xEA
special 0x29
warp 0x9 0x2 0xFF 0x6 0x6
waitstate
setvar 0x8004 0x1
setvar 0x8005 0x2
special 0xEA
addvar LASTRESULT 0x1
setvar 0x8004 0x2
setvar 0x8005 0x2
copyvar 0x8006 LASTRESULT
special 0xEA
copyvar 0x8000 LASTRESULT
compare 0x8000 0x3
if 0x1 goto 0x8209A7B
setvar 0x8006 0x1
warp 0x9 0x3 0xFF 0x2 0x3
waitstate
setvar 0x8004 0x2
setvar 0x8005 0x0
setvar 0x8006 0x3
special 0xEA
special 0x29
warp 0x9 0x2 0xFF 0x6 0x6
waitstate
callstd 0x9
callstd 0x28
'---------------
#org 0x208EB4
msgbox 0x825AB96 MSG_KEEPOPEN '"Right this way, please!"
closeonkeypress
applymovement 0x1 0x82725A6
waitmovement 0x0
setdooropened 0x2 0x1
doorchange
applymovement 0x1 0x8209068
applymovement MOVE_PLAYER 0x820905E
waitmovement 0x0
setdoorclosed 0x2 0x1
doorchange
warp 0x9 0x4 0xFF 0x4 0x4
waitstate
end
'---------------
#org 0x208FF1
fadescreen 0x1
setvar 0x8004 0x7
special 0xF7
waitstate
compare LASTRESULT 0x1
if 0x1 goto 0x8208EB4
msgbox 0x825AB6C MSG_KEEPOPEN '"Thank you!\nYour Pokémon swap is c..."
goto 0x8208EB4
'---------------
#org 0x209A7B
setvar 0x8004 0x2
setvar 0x8005 0x0
setvar 0x8006 0x3
special 0xEA
special 0x29
warp 0x9 0x2 0xFF 0x6 0x6
waitstate
callstd 0x9
callstd 0x28
'---------
' Strings
'---------
#org 0x25A1C8
= First, we will hold your Pokémon for\nsafekeeping.\pYou may then choose from our\nselection of Pokémon.
#org 0x25AB96
= Right this way, please!
#org 0x25A22D
= Thank you for competing!\nLet us restore your Pokémon!
#org 0x25A350
= Would you like to save and quit\nthe game?
#org 0x25A37A
= Would you like to retire from your\nBattle Swap challenge?
#org 0x25AB2E
= Before starting the battle, would you\nlike to swap a Pokémon?
#org 0x25AB6C
= Thank you!\nYour Pokémon swap is complete.
#org 0x25A263
= The 2nd match is next!\nAre you ready?
#org 0x25A289
= The 3rd match is next!\nAre you ready?
#org 0x25ABAE
= I am saving your data.\nPlease wait.
'-----------
' Movements
'-----------
#org 0x209062
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x25 'Step on the Spot Down (Fastest)
#raw 0xFE 'End of Movements
#org 0x209059
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xFE 'End of Movements
#org 0x2725A6
#raw 0x26 'Step on the Spot Up (Fastest)
#raw 0xFE 'End of Movements
#org 0x209068
#raw 0x9 'Step Up (Normal)
#raw 0x54 'Hide
#raw 0xFE 'End of Movements
#org 0x20905E
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x54 'Hide
#raw 0xFE 'End of Movements