View Single Post
Old 12th May 2016, 04:50 PM   #19
Gameskiller01
Newbie
 
Join Date: Nov 2015
Posts: 4
Gameskiller01
Default Welp

So I finally finished the main game of Emerald on my playthrough and went to fight Steven, who has now got the champion battle theme (thanks btw), but after I beat him another battle starts immediately after, before the msgbox can even show up. It just goes to the overworld and starts a new battle. I don't know why this is. If you could offer any help it would be greatly appreciated.
Here's my script. (Before I compiled it and XSE changed everything into hex).

Code:
'---------------
#freespace 0xFF
#dynamic 0xE3E2CA

#org @start
lock
checkflag 0x4F8
if 0x1 goto @nobattle
checksound
sound 0x15
applymovement 0x1 0x8272598
waitmovement 0x0
applymovement 0x1 0x827259A
waitmovement 0x0
applymovement 0x1 0x827259E
waitmovement 0x0
msgbox @intro MSG_KEEPOPEN '"STEVEN: Oh, wow, [player]\v\h05.\n..."
special 0x3E
playsong 0x1DE 0x0
trainerbattle 0x0 0x324 0x0 @intro @defeated
msgbox @afterwards MSG_KEEPOPEN '"STEVEN: Come to think of it, ever ..."
setflag 0x4F8
release
end

'---------------
#org @nobattle
applymovement 0x1 0x827259E
waitmovement 0x0
msgbox @afterwards MSG_KEEPOPEN '"STEVEN: Come to think of it, ever ..."
release
end


'---------
' Strings
'---------
#org @intro
= STEVEN: Oh, wow, [player]\v\h05.\nI'm amazed you knew where to find me.\pDo you, uh[.]maybe think of me as\njust a rock maniac?\pNo, that can't be right.\pWe battled alongside each other at\nthe SOOTOPOLIS SPACE CENTER.\pYou should have a very good idea\nabout how good I am.\pOkay, [player]\v\h05, if you're going to mount\na serious challenge, expect the worst!

#org @defeated
= You[.]\nI had no idea you'd become so strong[.]

#org @afterwards
= STEVEN: Come to think of it, ever since\nour paths first crossed in GRANITE\lCAVE in DEWFORD, I had this feeling.\pI thought that you would eventually\nbecome the CHAMPION.\pMy predictions usually come true.\pAnd where will you go from here?\p[.] [.] [.] [.] [.] [.]\n[.] [.] [.] [.] [.] [.]\pFufufu, even I couldn't tell you that.


'-----------
' Movements
'-----------
#org 0x272598
#raw 0x56 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x27259A
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0xFE 'End of Movements

#org 0x27259E
#raw 0x3E 'Face Player
#raw 0xFE 'End of Movements
And here's it afterwards

Code:
'---------------
#org 0xE3E2CA
lock
checkflag 0x4F8
if 0x1 goto 0x8E3E321
checksound
sound 0x15
applymovement 0x1 0x8272598
waitmovement 0x0
applymovement 0x1 0x827259A
waitmovement 0x0
applymovement 0x1 0x827259E
waitmovement 0x0
msgbox 0x8E3E336 MSG_KEEPOPEN '"STEVEN: Oh, wow, [player]\v\h05.\n..."
special 0x3E
playsong 0x1DE 0x0
trainerbattle 0x0 0x324 0x0 0x8E3E336 0x8E3E484
msgbox 0x8E3E4B1 MSG_KEEPOPEN '"STEVEN: Come to think of it, ever ..."
setflag 0x4F8
release
end

'---------------
#org 0xE3E321
applymovement 0x1 0x827259E
waitmovement 0x0
msgbox 0x8E3E4B1 MSG_KEEPOPEN '"STEVEN: Come to think of it, ever ..."
release
end


'---------
' Strings
'---------
#org 0xE3E336
= STEVEN: Oh, wow, [player]\v\h05.\nI'm amazed you knew where to find me.\pDo you, uh[.]maybe think of me as\njust a rock maniac?\pNo, that can't be right.\pWe battled alongside each other at\nthe SOOTOPOLIS SPACE CENTER.\pYou should have a very good idea\nabout how good I am.\pOkay, [player]\v\h05, if you're going to mount\na serious challenge, expect the worst!

#org 0xE3E484
= You[.]\nI had no idea you'd become so strong[.]

#org 0xE3E4B1
= STEVEN: Come to think of it, ever since\nour paths first crossed in GRANITE\lCAVE in DEWFORD, I had this feeling.\pI thought that you would eventually\nbecome the CHAMPION.\pMy predictions usually come true.\pAnd where will you go from here?\p[.] [.] [.] [.] [.] [.]\n[.] [.] [.] [.] [.] [.]\pFufufu, even I couldn't tell you that.


'-----------
' Movements
'-----------
#org 0x272598
#raw 0x56 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x27259A
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0xFE 'End of Movements

#org 0x27259E
#raw 0x3E 'Face Player
#raw 0xFE 'End of Movements
Nvm, I was being an idiot. XD I forgot to change the script offset in A-Map. Sorry. Even after months, I'm still stupid. XD

Last edited by Gameskiller01; 12th May 2016 at 05:08 PM.
Gameskiller01 is offline   Reply With Quote