P3D-Legacy/P3D/Content/Data/Scripts/rival/rival_victoryroad.dat

49 lines
2.4 KiB
Plaintext

version=2
:if:<register.registered(rival_v-road)>=false
@npc.warp(0,34,0,-1)
@Music.play(johto_rival_encounter)
@player.turnto(0)
@npc.move(0,2)
:select:<player.position(x)>
:when:33
@npc.turn(0,1)
@npc.move(0,1)
@npc.turn(0,2)
:when:35
@npc.turn(0,3)
@npc.move(0,1)
@npc.turn(0,2)
:endwhen
@npc.move(0,2)
:if:<register.registered(starter1)>=true
@Battle.starttrainer(rival\rival_4_fire)
:endif
:if:<register.registered(starter2)>=true
@Battle.starttrainer(rival\rival_4_water)
:endif
:if:<register.registered(starter3)>=true
@Battle.starttrainer(rival\rival_4_grass)
:endif
@text.show(...I haven't given up~on becoming the~greatest trainer...*I'm going to find out why~I can't win and become~stronger...*When I do,~I will challenge you.*And I'll beat you down~with all my power.*...Humph!~You keep at it til then.)
@npc.turn(0,0)
@npc.move(0,2)
:select:<player.position(x)>
:when:33
@npc.turn(0,3)
@npc.move(0,1)
@npc.turn(0,0)
:when:35
@npc.turn(0,1)
@npc.move(0,1)
@npc.turn(0,0)
:endwhen
@npc.move(0,2)
@npc.remove(0)
@register.register(rival_v-road)
@music.play(kvictoryroad)
:endif
:end