- 853
- Posts
- 4
- Years
- Seen Nov 9, 2023
I'm trying to write a script to access rock smash without any prior checks, and I thought I succeeded in this
but, every time I take a step in any direction the sprite pops back up.
Here's my code.
but, every time I take a step in any direction the sprite pops back up.
Here's my code.
Code:
lockall
setanimation 0x0 LASTRESULT
bufferpartypokemon 0x0 LASTRESULT
bufferattack 0x1 0xF9
msgbox 0x81BE09D MSG_YESNO '"This rock appears to be breakable...."
compare LASTRESULT 0x0
if 0x1 goto 0x81BE09A
msgbox 0x81BDFD7 MSG_KEEPOPEN '"[buffer1] used [buffer2]!"
closeonkeypress
doanimation 0x25
waitstate
goto 0x81BE06F
'---------------
#org 0x1BE09A
closeonkeypress
releaseall
end
'---------------
#org 0x1BE06F
applymovement LASTTALKED 0x81BE08F
waitmovement 0x0
hidesprite LASTTALKED
releaseall
end
'---------
' Strings
'---------
#org 0x1BE09D
= This rock appears to be breakable.\nWould you like to use ROCK SMASH?
#org 0x1BDFD7
= [buffer1] used [buffer2]!
'-----------
' Movements
'-----------
#org 0x1BE08F
#raw 0x68 'mov68
#raw 0xFE 'End of Movements
Last edited: