• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Rival Help

Ive got two rival encounter on one of my routes and after you leave your rival comes back he or she walks off after you done but comes back any idea what i did wrong the first event works great you fight and your rival and he's gone but the other two won't go away need help with it.
Well, What I did for my rival is, when the battle is over, he walks of screen and I made an Erase Event so the event doesnt exist anymore. And to make him appear somewhere else, I simply created another version of him. You could try that.

You could also post a picture of the event pages of the working rival and the non working ones so we can see what's going on.
 
But doesn't erase event make the rival return when the map is refreshed?
You need to do that with switches.
If you do it with switches, there is no reason for the rival to return.
See trainers on the wiki.
 
i have one set but for some reason he comes back after its done.
Ok look a simple way is to have 2 event pages for the rival.

Page 1 has the battle info like Batlle me!!! and Aw, I lost. At the end of that you add control switch A=ON.

Page 2 DO NOT use a graphic for this page or the rival will keep coming back once you re enter the map.
Then, set the condition of this page to self switch A is ON and simply put Erase Event which is found on the event options. Remember, DO NOT use a graphic for page 2, leave it blank.
 
it's okay we fixed and also would that work for all 3 of the fights its your main rival and depending on who you pick will determine who you fight.
If I understood your question correctly, then yes, it should work with the rival as long as you make different versions of him/her just like you would any other trainer. So I assume you have finished your rival and if you choose a boy character in your game , you get a girl rival and vise-versa just like in the official games right? If you want 3 fights with your rival, I think you will need to make 6 different versions of the rival. 3 for the boy and 3 for the girl.
 
You will have to make 3 different encounters, for EACH battle you have between the rival... Using Variables will be your friend here.

If you start with Pidgey, $game_variables[x]==1, and have the battle event be:
pbTrainerBattle(PBTrainers::RIVAL,"Ash",_I("Hello!"),false,0,true)

If you start with Machop, $game_variables[x]==2, and have the battle event be:
pbTrainerBattle(PBTrainers::RIVAL,"Ash",_I("Hello!"),false,1,true)

If you start with Chikorita, $game_variables[x]==3, and have the battle event be:
pbTrainerBattle(PBTrainers::RIVAL,"Ash",_I("Hello!"),false,2,true)

This is your trainers class
This is your trainers name
This is what they will say after the battle
This is whether it is a double battle or not
This is the number you will deffinitly need to use...

This is whether you lose or not


As you can see, the Pink wording is what I said you will need, this is what will make you battle your rival with a different Pokémon set in trainers.txt...

RIVAL
Ash
1,POTION
PIKACHU,18


RIVAL
Ash,1
1,POTION
DROWZEE,18

RIVAL
Ash,2
1,POTION
SPEAROW,18



Notice the number after the name, that's what the "0", "1" and "2" will read.
 
I prefer using Self Switches, because I irrationally don't trust erasing the event. With Self Switches I know exactly what's happening. I don't think there's any difference between the two methods.
 
It depends on you as well. I for example just erase the events after the battle because it's easier for me. Also my game map is set so the player cannot reach the 2nd 3rd or 4th rival battle until the player does certain things. So there is no chance for the player running into and starting a battle with rival version 3 before battling rival version 2 for example. They are set in order. In the end, it comes down to what is better for you.
 
Back
Top