- 27
- Posts
- 8
- Years
- Somewhere
- Seen May 2, 2025
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:
Not Working:
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.
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.