- Pokémon Essentials Version
- v19.1 ➖
Since this function is not included in any events in the base essentials I wanted to include this.
This is a simple event process that I needed, with some help from Golisopod User I got it working.
It's very simple, it just exchanges a Pokemon for an Item, and prevents the user from selecting an egg or untradable (Shadow) pokemon. It also prevents the user from selecting a Pokemon which is not PICHU.
INSTALLATION
To use this resource you must create an event and insert the code yourself.
This is a simple event process that I needed, with some help from Golisopod User I got it working.
It's very simple, it just exchanges a Pokemon for an Item, and prevents the user from selecting an egg or untradable (Shadow) pokemon. It also prevents the user from selecting a Pokemon which is not PICHU.
INSTALLATION
To use this resource you must create an event and insert the code yourself.
EVENT CODE:
@>Text: I'm hunting for a Pichu.
@>Text: If you find one will you trade it to me for
: : this <b>LUCKY EGG</b>?
@>Conditional Branch: Script: pbHasSpecies?(:PICHU)
@>Text: Oh wow you found one!\n
: : Wanna trade?
@>Show Choices: Yes, No
(When Cancel: Choice 2)
: When [Yes]
@>Script: pbChooseTradablePokemon(1,3)
@>Conditional Branch: Variable [0001: Temp Pokemon Choice] < 0
@>Text: Oh, did you change your mind?
@>Jump to Label: done
@>
: Branch End
@>Conditional Branch: Script: pbSet(2,pbGetPokemon(1).species,PBSpecies,:PICHU)
@>Control Self Switch: A =ON
@>Text: Thanks!
@>Script: Kernel.pbItemBall(:LUCKYEGG)
@>
: Else
@>Text: That's not a Pichu!
@>Jump to Label: done
@>
: Branch End
@>
: When [No]
@>
: Branch End
@>
: Else
@>
: Branch End
@>Label: done
@>
- Credits
- Aiur Jordan (Credit not required)