- 9
- Posts
- 9
- Years
- Seen Sep 16, 2015
Hi, I'm having some trouble getting my rival battle code to work.
I'm trying to get him to walk to talk, walk to player, player reacts, talk, battle, talk, walk away, dissapear
when i hit the script no sprite walks towards the player but the player reacting still happens. The battle commences and after the battle no code is run until
the player re-walks over the script panel.. in which it restarts (still no sprite walking down) but skips the battle and goes to him talking before hes supposed to walk away..
I'm not sure what i'm doing wrong. My rival is person #10
here is the code..
any help is greatly appreciated.
Also, there is two rivals in this game, so this rival does not need to check for which pokemon the player started with
My rom is FireRed
I'm trying to get him to walk to talk, walk to player, player reacts, talk, battle, talk, walk away, dissapear
when i hit the script no sprite walks towards the player but the player reacting still happens. The battle commences and after the battle no code is run until
the player re-walks over the script panel.. in which it restarts (still no sprite walking down) but skips the battle and goes to him talking before hes supposed to walk away..
I'm not sure what i'm doing wrong. My rival is person #10
here is the code..
Spoiler:
#dynamic 0x800FD5
#org @start
msgbox @talk1
playsong 0x11A 0x0
applymovement 0x10 @walk1
waitmovement 0x10
applymovement MOVE_PLAYER @walk2
waitmovement 0xFF
msgbox 0x8801043 MSG_NORMAL '"I've heard you smoked the pewter\n..."
trainerbattle 0x0 0x3 0x0 0x8801138 0x8801148
msgbox 0x8801164 MSG_NORMAL '"You've shown me I need to train\nh..."
applymovement 0x10 @walk3
waitmovement 0x10
hidesprite 0x10
setflag 0x1500
fadesong 0x125
setvar 0x6000 0x1
release
end
'---------
' Strings
'---------
#org 0x80102E
= Hey, You, Wait up!
#org 0x801043
= I've heard you smoked the pewter\ncity gym leader.\pVery impressive, I've just\nreceived my second gym badge.\pMy name is Ruby, I'm from the\nHoenn region.\pI've come here to challenge the\nElite 4, and catch rare pokemon.\pAnd you are my new rival!!
#org 0x801138
= Lets do this!
#org 0x801148
= You've put me to shame...
#org 0x801164
= You've shown me I need to train\nharder...\pUntil next time, [player] !
'-----------
' Movements
'-----------
#org @walk1
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x4A 'Face Player
#raw 0xFE 'End of Movements
#org @walk2
#raw 0x63 'Question Mark (?)
#raw 0x55 'Jump in Place (Facing Right)
#raw 0xFE 'End of Movements
#org @walk3
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
#org @start
msgbox @talk1
playsong 0x11A 0x0
applymovement 0x10 @walk1
waitmovement 0x10
applymovement MOVE_PLAYER @walk2
waitmovement 0xFF
msgbox 0x8801043 MSG_NORMAL '"I've heard you smoked the pewter\n..."
trainerbattle 0x0 0x3 0x0 0x8801138 0x8801148
msgbox 0x8801164 MSG_NORMAL '"You've shown me I need to train\nh..."
applymovement 0x10 @walk3
waitmovement 0x10
hidesprite 0x10
setflag 0x1500
fadesong 0x125
setvar 0x6000 0x1
release
end
'---------
' Strings
'---------
#org 0x80102E
= Hey, You, Wait up!
#org 0x801043
= I've heard you smoked the pewter\ncity gym leader.\pVery impressive, I've just\nreceived my second gym badge.\pMy name is Ruby, I'm from the\nHoenn region.\pI've come here to challenge the\nElite 4, and catch rare pokemon.\pAnd you are my new rival!!
#org 0x801138
= Lets do this!
#org 0x801148
= You've put me to shame...
#org 0x801164
= You've shown me I need to train\nharder...\pUntil next time, [player] !
'-----------
' Movements
'-----------
#org @walk1
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x4A 'Face Player
#raw 0xFE 'End of Movements
#org @walk2
#raw 0x63 'Question Mark (?)
#raw 0x55 'Jump in Place (Facing Right)
#raw 0xFE 'End of Movements
#org @walk3
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
any help is greatly appreciated.
Also, there is two rivals in this game, so this rival does not need to check for which pokemon the player started with
My rom is FireRed
Last edited: