Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] How to use the $Trainer.shadowcaught array

Notices
For all updates, view the main page.

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.



Reply
 
Thread Tools
  #1    
Old September 23rd, 2012 (01: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
Else
-Fight Trainer with Shadow Geodude
End

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
  #2    
Old September 23rd, 2012 (02:22 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,249
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
  #3    
Old September 23rd, 2012 (05: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
Reply
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 UTC -8. The time now is 11:51 AM.