• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Script] Hidesprite command not working, despite nearly identical script elsewhere working

I'm making a reoccurring trainer in my hack that leaves after he is beaten (through fadescreen and hidesprite),
but in one of his scripts, he just stays there after the screen fades back in and acts as if he was never fought.

Here are the two scripts I have so far, the correctly working one and the one that isn't working:

Working:

Code:
lock
faceplayer
msgbox 0x8184CF1 MSG_NORMAL '"HYNE: Gyehe! We meet again, [playe..."
special 0x3B
playsong 0x1D6 0x0
trainerbattle 0x0 0x9C 0x0 0x8184D31 0x8184D31
msgbox 0x8184D4D MSG_NORMAL '"HYNE: Grrr[.]\nyou brat!\pJust you..."
fadescreen 0x1
hidesprite 0x6
setflag 0x202
pause 0x10
fadescreen 0x0
release
end

Not Working:
Code:
lock
faceplayer
msgbox 0x817279D MSG_NORMAL '"Hey! Who the heck are you?\n[.][pl..."
special 0x3B
playsong 0x1D6 0x0
trainerbattle 0x0 0xB5 0x0 0x81727CB 0x81727CB
msgbox 0x81727DF MSG_NORMAL '"You little pest! I, Hyne,\nwon't f..."
fadescreen 0x1
hidesprite 0x12
setflag 0x203
pause 0x10
fadescreen 0x0
release
end

I'm not sure what the problem could be, since I also made sure the flags and person IDs matched in the case
of both scripts, as well as the person events/sprites to hide.
 
Back
Top