Hello. I've been trying to use the $Trainer.shadowcaught[species] array but I just can't figure out how.
I want to make a Conditional branch where you fight a Trainer with a Shadow Pokémon and if you already caught the pokemon, be able to fight again against this trainer but without the Shadow Pokémon. Or even make a "Miror B" trainer like the Wiki page suggests but I don't know how to do this event either.
I tried it like this:
Conditional Branch > Script: $Trainer.shadowcaught[GEODUDE]
-Fight Trainer without Shadow Geodude
-Fight Trainer with Shadow Geodude
Firstly, $Trainer.shadowcaught[PBSpecies::GEODUDE]. Secondly, it is set to true automatically when capturing a Shadow Pokémon of that species. Thirdly, you're correct the first time with the Conditional Branch business.