PDA

View Full Version : [Question] Not to go to the center Pokemon on having lost against a wild pokemon


TACHAN
April 30th, 2012, 11:12 AM
For example, I want that Darkrai wins me in order that then I can follow the history in the same point.

How do I do an event of battle in the one that on having lost does not take me to the center pokemon?
I cannot do it like with a trainer.

Nickalooose
May 1st, 2012, 01:41 AM
pbWildBattle(PBSpecies::species,level,result,escape)
result is what you are looking at, result is the variable
that will be saved, you may want to look here before asking a question
like this in future:

Pokémon Essentials Event Encounters (http://pokemonessentials.wikia.com/wiki/Event_encounters#Wild_battles_caused_by_an_event)

Use conditional branches to keep the event going.

TACHAN
May 1st, 2012, 06:51 AM
pbWildBattle(PBSpecies::species,level,result,escape)
result is what you are looking at, result is the variable
that will be saved, you may want to look here before asking a question
like this in future:

Pokémon Essentials Event Encounters (http://pokemonessentials.wikia.com/wiki/Event_encounters#Wild_battles_caused_by_an_event)

Use conditional branches to keep the event going.

Thanks You! :D
I was not finding it.

"result" is a Global Variable number in which the outcome of the battle will be recorded (1=won, 2=lost, 3=run, 4=caught). "escape" is whether the player can flee from the battle (TRUE if not defined). These last two parameters are optional. What do they do exactly 3=run and 4=caught?

desbrina
May 1st, 2012, 07:02 AM
3 is if they player chooses to run from the battle.
4 is if the player catches the pokemon in a pokeball.

Nickalooose
May 1st, 2012, 08:44 AM
No problem... What Desbrina said is right, good luck in your project. X