pbFirstAblePokemon(1)
pkmn=pbGetPokemon(1)
pbSet(2,PBItems.getName(pkmn.item))
Here's an event that checks the item of the Pokémon in the first slot. I wasn't sure which Pokémon you wanted to check.
pbSet will store pkmn.item (which is the id of the item) into variable 2Thank you so much for the script! It works, but is there a way to check if the Pokemon is holding a specific item and a conditional branch based on that, like pbChooseItem? (storing the item number to a variable)
pkmn=pbGetPokemon(1)
pbSet(2,pkmn.item)