- 157
- Posts
- 7
- Years
- Seen Nov 19, 2023
I've been working on a trainer battle in the Emerald rom I'm messing around with however the script isn't functioning as I would like, if someone could help I would be very grateful. Here is the script:
Everything works fine as far as the battle is concerned and the sprite fading afterwards, however upon initiating the battle there are some issues; the intro music does not play, the before message and text box in general does not appear. Thanks in advance if anyone knows where I've gone wrong.
Spoiler:
#freespace 0xFF
#dynamic 0xE40498
#org @start
lock
faceplayer
playsong 0x20F 0x0
msgbox @intro MSG_KEEPOPEN
special 0x3E
playsong 0x1FF 0x0
trainerbattle 0x2 0x27C 0x0 @intro @defeated @afterward
setflag 0x938
hidesprite 0x2F
fadescreen 0x0
release
end
#org @intro
= That badge!\nIt seems you beat my brother\pBrawly!
#org @defeated
= Great battle...
#org @afterward
= See you around. My team's wasted.
#dynamic 0xE40498
#org @start
lock
faceplayer
playsong 0x20F 0x0
msgbox @intro MSG_KEEPOPEN
special 0x3E
playsong 0x1FF 0x0
trainerbattle 0x2 0x27C 0x0 @intro @defeated @afterward
setflag 0x938
hidesprite 0x2F
fadescreen 0x0
release
end
#org @intro
= That badge!\nIt seems you beat my brother\pBrawly!
#org @defeated
= Great battle...
#org @afterward
= See you around. My team's wasted.
Everything works fine as far as the battle is concerned and the sprite fading afterwards, however upon initiating the battle there are some issues; the intro music does not play, the before message and text box in general does not appear. Thanks in advance if anyone knows where I've gone wrong.