The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Create & Discover > Game Development > Pokémon Essentials
Reload this Page How to use the $Trainer.shadowcaught array
Sign Up Rules/FAQ Daily Battle Blogs Mark Forums Read

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Thread Tools
Old September 23rd, 2012 (1:44 PM).
LenSho's Avatar
LenSho LenSho is offline
Join Date: Sep 2012
Gender: Male
Nature: Modest
Posts: 93
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

Or even like this:

Script: $Trainer.shadowcaught[GEODUDE]=true
Script: $Trainer.shadowcaught[074]
Script: $Trainer.shadowcaught[species]=GEODUDE

This should give you an idea of how lost I am.
Reply With Quote

Relevant Advertising!

Old September 23rd, 2012 (2:22 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Join Date: Jan 2008
Location: England
Posts: 5,133
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.
Reply With Quote
Old September 23rd, 2012 (5:29 PM).
LenSho's Avatar
LenSho LenSho is offline
Join Date: Sep 2012
Gender: Male
Nature: Modest
Posts: 93
Oh, I would have never guessed I had to use "PBSpecies::" too. It works now. Thank you.
Reply With Quote
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 5:12 PM.

Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2016 The PokéCommunity™,
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / Poké
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2016.