Help Triggering event upon depositing pokemon

itman312

Rookie
Member
Posts
2
#1
When I deposit a particular pokemon species holding a particular item into the PC, I want to be able to change that item. I'm assuming I can check for the held item with something like this:

if isConst?(pkmn.item,PBItems,:QUICKCLAW)

or something like that. The problem is finding out where in the scripts I should add this code. I've tried pbMoveCaughtToBox and pbStoreCaught without any success. Does anyone know where I would need to add this code?
 

NettoHikari

Novice
Member
Posts
21
#2
I think those methods you tried only work for Pokemon stored immediately after battle. Try looking instead in the "pbStore" method under class PokemonStorageScreen.
 
Top