itsnikopiko
Elite Four
- 5
- Posts
- 4
- Years
- Seen Dec 9, 2020
Currently trying to get a script working where the rival meets up with the player and challenges the trainer after they get their first Pokemon. This is the first script I've tried to fully write by myself and yes, it shows (lol), I want the script to trigger when the player stands on a spot on the map, and then the rival runs up to the player, says his dialogue, and battles the player. I tried messing with this on my own to see if I could get this working and have had no such luck. What do I need to do to get this working? Here's the script: (Also thanks in advance if anyone helps out)
#dynamic 0x800000
#org @start
checkflag 0x200 - (player has spoken to man who gives them the pokemon)
lock
msgbox @t1 0x4
closeonkeypress
pause 0x60
applymovement 0x2 @seePlayer
waitmovement 0x0
msgbox @t2 0x6
trainerbattle 0x0 0x001 0x0 @introText @winText
msgbox @t3 0x6
applymovement 0x2 @dissapointment
waitmovement 0x0
hidesprite 0x2
setflag 0x201
release
end
#org @t1
= (dialogue)
#org @t2
= (dialogue)
#org @t3
= (dialogue)
#org @winText
= Beginner's luck!
#org @introText
= Time for our first battle!
#org @seePlayer
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFE
#org @dissapointment
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0xFE
#dynamic 0x800000
#org @start
checkflag 0x200 - (player has spoken to man who gives them the pokemon)
lock
msgbox @t1 0x4
closeonkeypress
pause 0x60
applymovement 0x2 @seePlayer
waitmovement 0x0
msgbox @t2 0x6
trainerbattle 0x0 0x001 0x0 @introText @winText
msgbox @t3 0x6
applymovement 0x2 @dissapointment
waitmovement 0x0
hidesprite 0x2
setflag 0x201
release
end
#org @t1
= (dialogue)
#org @t2
= (dialogue)
#org @t3
= (dialogue)
#org @winText
= Beginner's luck!
#org @introText
= Time for our first battle!
#org @seePlayer
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFE
#org @dissapointment
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0xFE