- 222
- Posts
- 7
- Years
- Seen Nov 18, 2023
Hey, I made a script that applies movement to the player:
EDIT: Even after adding #raw 0xFE to end the movements (updated script below) it still is broken.
'---------------
#org 0x71B317
countpokemon
compare LASTRESULT 0x0
if 0x1 goto 0x871B337
end
'---------------
#org 0x71B337
lock
msgbox 0x871B352 MSG_NORMAL '"OAK: Hold up!"
applymovement MOVE_PLAYER 0x871B386
msgbox 0x871B362 MSG_NORMAL '"OAK: Get a starter from me first!"
release
end
'---------
' Strings
'---------
#org 0x71B352
= OAK: Hold up!
#org 0x71B362
= OAK: Get a starter from me first!
'-----------
' Movements
'-----------
#org 0x71B386
#raw 0x23 'Step on the Spot Left (Normal)
#raw 0xFE
But upon walking on that tile the game softlocks. What am I doing wrong?
Note: this is the compiled version of the script in XSE; I used dynamic everything beforehand
EDIT: Even after adding #raw 0xFE to end the movements (updated script below) it still is broken.
Spoiler:
'---------------
#org 0x71B317
countpokemon
compare LASTRESULT 0x0
if 0x1 goto 0x871B337
end
'---------------
#org 0x71B337
lock
msgbox 0x871B352 MSG_NORMAL '"OAK: Hold up!"
applymovement MOVE_PLAYER 0x871B386
msgbox 0x871B362 MSG_NORMAL '"OAK: Get a starter from me first!"
release
end
'---------
' Strings
'---------
#org 0x71B352
= OAK: Hold up!
#org 0x71B362
= OAK: Get a starter from me first!
'-----------
' Movements
'-----------
#org 0x71B386
#raw 0x23 'Step on the Spot Left (Normal)
#raw 0xFE
But upon walking on that tile the game softlocks. What am I doing wrong?
Note: this is the compiled version of the script in XSE; I used dynamic everything beforehand
Last edited: