• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

PBHasSpecies script question

23
Posts
12
Years
  • Seen Mar 29, 2014
I have a question, is it possible to use the PBHasSpecies script, but instead of asking for a pokemon make it ask for an item? or is there a way to activate an event by having a certain item by another method that isn't activating a switch?
I ask this because my game has mystery gift, and I want to activate an event by receiving an item.
 
772
Posts
13
Years
  • Age 35
  • UK
  • Seen Apr 19, 2024
well, you can do
$PokemonBag.pbQuantity(PBItems::POTION)>0
in a conditional branch

obviously replace potion you your items name
 
Back
Top