Ok guys I need help. What im trying to do is do the first rival event from pokemon crystal where your rival steals a pokemon from professor elm and you run into him. The problem im having is after you duel him he says hes going to be the best pokemon trainer like normal then after that he moves and then the whole event starts all over again. Ive tried turning off the switch that turns the event on but that just stops the movement completely. Also called the end battle script on all parts... didnt make a difference. Anyway... heres the event im talking about....
Code:
Script:Kernel.pbNoticePlayer(get_character(0))
Wait: 15 Frames
Set Movement Route: Player, Turn right,
Set Movement Route: Rival, Move Left, Move Left, Move Left, Move Left, Move Left, Move Left
Wait For Moves Completion
Text: ..... ..... .....
Text: You got a pokemon at the lab.
Text: What a waste a wimp like you.
Text: Don't you get what i'm saying?
Text: Well, I too, have a good pokemon.
Text: I'll show you what I mean!
Comment: Rival Choice 1 switch = Totodile
Conditional Branch: Switch [042: Rival Choice 1] == ON
Conditional Branch: Script: pbTrainerBattle(PBTrainers::RIVAL,"?????",_I("Humph. Are you happy you won?"),false,1)
Control Self Switch A = ON
Branch End
Branch End
Comment: Rival Choice 2 switch = Chikorita
Conditional Branch: Switch [043: Rival Choice 2] == ON
Conditional Branch: Script: pbTrainerBattle(PBTrainers::RIVAL,"?????",_I("Humph. Are you happy you won?"),false,2)
Control Self Switch A = ON
Branch End
Branch End
Comment: Rival Choice 3 switch = Cyndaquil
Conditional Branch Switch [044: Rival Choice 3] == ON
Conditional Branch: Script: pbTrainerBattle(PBTrainers::RIVAL,"?????",_I("Humph. Are you happy you won?"),false,3)
Control Self Switch A = ON
Branch End
Branch End
Script: pbTrainerEnd
Text: ..... ..... .....
My names ?????.
Text: I'm going to be the worlds greatest pokemon trainer.
Set Movement Route: Player, Move Down, Turn Up, Turn Left
Comment: Switch 0040 is what turns this event on, Switch 0045 is for a different event.
Set Movement Route: Rival, Move Up, Move Left, Move Left, Move Left, Move Up, Move Left, Move Left, Move Left, Move Left, Move Left, Move Left, Switch 0040 OFF, Switch 0045 ON
Wait: 60 Frames
and heres the changes to trainernames and trainer.txt if you need them
Code:
83,RIVAL,?????,30,,,,Male
Code:
#-------------------
RIVAL
?????,1
1
TOTODILE,5
#-------------------
RIVAL
?????,2
1
CHIKORITA,5
#-------------------
RIVAL
?????,3
1
CYNDAQUIL,5
Normally id try to fix this myself but ive been trying for the past 5 hours and cant find what I did wrong. Also i was wondering how it would be possible to make a rival screen to insert your rival's name like you can with your own name. Cant find that anywhere in notes.html so i was wondering if that was implemented or not....