• The Eevee Expo Game Jam #10 has concluded, congratulations to all participants! Now it's time for the judges to play through the games, and you can play along to vote who deserves the community choice spotlight.
    You can check out the submitted games here!
    Play through the games and provide some feedback to the devs while you're at it!
  • Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Trade Item for Pokemon (Event)

Trade Item for Pokemon (Event) 1

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.

EVENT CODE:
Expand Collapse Copy
@>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)
  • Like
Reactions: TechSkylander1518
Author
AiurJordan
Views
2,094
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from AiurJordan

Back
Top