- 157
- Posts
- 7
- Years
- Seen Nov 19, 2023
So I am trying to script a trainer battle where the trainer stand in front of an area making you battle them to progress, then after being beaten the screen fades to black and they have disappeared, like the rocket grunt in celadon in fire red. Here is the script I've been using (on pokemon emerald btw).
#dynamic 0x2E9710
#org @event
lock
faceplayer
trainerbattle 0x2 0x1 0x0 0x82E97BF 0x82E9803 0x82E977B
release
end
'---------------
#org 0x2E977B
msgbox 0x82E9816 MSG_NORMAL '"Curses, foiled by a kid!"
fadescreen 0x1
setflag 0x1200
hidesprite 0x6
fadescreen 0x0
release
end
'---------
' Strings
'---------
#org 0x2E97BF
= Prepare to be defeated!
#org 0x2E9803
= Dang you beat me
#org 0x2E9816
= Curses, foiled by a kid!
So when I talk to the trainer in game, literally nothing happens ahah. So any help regarding what might be wrong here would be appreciate. Cheers.
#dynamic 0x2E9710
#org @event
lock
faceplayer
trainerbattle 0x2 0x1 0x0 0x82E97BF 0x82E9803 0x82E977B
release
end
'---------------
#org 0x2E977B
msgbox 0x82E9816 MSG_NORMAL '"Curses, foiled by a kid!"
fadescreen 0x1
setflag 0x1200
hidesprite 0x6
fadescreen 0x0
release
end
'---------
' Strings
'---------
#org 0x2E97BF
= Prepare to be defeated!
#org 0x2E9803
= Dang you beat me
#org 0x2E9816
= Curses, foiled by a kid!
So when I talk to the trainer in game, literally nothing happens ahah. So any help regarding what might be wrong here would be appreciate. Cheers.