McPaul
On my way to become a controversial and hated memb
- 289
- Posts
- 7
- Years
- He/ Him
- Switzerland
- Seen Apr 20, 2025
Hello!
I'm replacing HM moves with HM devices in my hack and I have an issue in my way of scripting. Since it doesn't check anymore if a Pokémon has a move or not the script doesn't know what Pokémon to use when using the HM (with the black bar animation and such) and seems to be random. I would like it to always be the first Pokémon in your party, what command mudt be used for this?
Here is the script:
thanks for your answer!
I'm replacing HM moves with HM devices in my hack and I have an issue in my way of scripting. Since it doesn't check anymore if a Pokémon has a move or not the script doesn't know what Pokémon to use when using the HM (with the black bar animation and such) and seems to be random. I would like it to always be the first Pokémon in your party, what command mudt be used for this?
Here is the script:
Spoiler:
'---------------
#freespace 0xFF
#dynamic 0x9C0B20
#org @start
lockall
checkflag 0x867
if 0x0 goto @snippet1
checkitem 0x153 0x1
compare LASTRESULT 0x6
if 0x1 goto @snippet1
setanimation 0x0 LASTRESULT
bufferpartypokemon 0x0 LASTRESULT
bufferitem 0x1 0xF
msgbox @string1 MSG_YESNO '"This tree looks like it can be\nCU..."
compare LASTRESULT 0x0
if 0x1 goto @snippet2
msgbox @string2 MSG_KEEPOPEN '"[buffer1] used [buffer2]!"
closeonkeypress
doanimation 0x2
waitstate
goto @snippet3
'---------------
#org @snippet1
msgbox @string3 MSG_KEEPOPEN '"This tree looks like it can be\nCU..."
releaseall
end
'---------------
#org @snippet2
closeonkeypress
releaseall
end
'---------------
#org @snippet3
applymovement LASTTALKED @move1
waitmovement 0x0
hidesprite LASTTALKED
releaseall
end
'---------
' Strings
'---------
#org @string1
= This tree looks like it can be\nCUT down!\pWould you like to CUT it?
#org @string2
= [buffer1] used [buffer2]!\nIt was hilarious!
#org @string3
= This tree looks like it can be\nCUT down!
'-----------
' Movements
'-----------
#org @move1
#raw 0x5B 'mov5B
#raw 0xFE 'End of Movements
#freespace 0xFF
#dynamic 0x9C0B20
#org @start
lockall
checkflag 0x867
if 0x0 goto @snippet1
checkitem 0x153 0x1
compare LASTRESULT 0x6
if 0x1 goto @snippet1
setanimation 0x0 LASTRESULT
bufferpartypokemon 0x0 LASTRESULT
bufferitem 0x1 0xF
msgbox @string1 MSG_YESNO '"This tree looks like it can be\nCU..."
compare LASTRESULT 0x0
if 0x1 goto @snippet2
msgbox @string2 MSG_KEEPOPEN '"[buffer1] used [buffer2]!"
closeonkeypress
doanimation 0x2
waitstate
goto @snippet3
'---------------
#org @snippet1
msgbox @string3 MSG_KEEPOPEN '"This tree looks like it can be\nCU..."
releaseall
end
'---------------
#org @snippet2
closeonkeypress
releaseall
end
'---------------
#org @snippet3
applymovement LASTTALKED @move1
waitmovement 0x0
hidesprite LASTTALKED
releaseall
end
'---------
' Strings
'---------
#org @string1
= This tree looks like it can be\nCUT down!\pWould you like to CUT it?
#org @string2
= [buffer1] used [buffer2]!\nIt was hilarious!
#org @string3
= This tree looks like it can be\nCUT down!
'-----------
' Movements
'-----------
#org @move1
#raw 0x5B 'mov5B
#raw 0xFE 'End of Movements
thanks for your answer!
Last edited: