The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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 Posted November 25th, 2012 (02:24 PM).
Rayd12smitty's Avatar
Rayd12smitty
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Hi I have a quick question again.

I want to make an event that makes it so that the player can see every pokemon in the pokedex. Is there a simple script command that makes it so that all pokemon are owned? If not, is there one that gives the player every pokemon?
__________________
Reply With Quote
  #2    
Old Posted November 25th, 2012 (02:51 PM).
venom12's Avatar
venom12
Pokemon Crystal Rain Relased
 
Join Date: Sep 2006
Age: 23
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to venom12
Yeah it is possible, just use.

Code:
for i in 1..PBSpecies.maxValue
$Trainer.seen[i]=true
end
__________________
This signature has been disabled.
Exceeds signature height limit because of broken images.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
Reply With Quote
  #3    
Old Posted November 25th, 2012 (03:21 PM).
Rayd12smitty's Avatar
Rayd12smitty
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Quote:
Originally Posted by venom12 View Post
Yeah it is possible, just use.

Code:
for i in 1..PBSpecies.maxValue
$Trainer.seen[i]=true
end
Sorry I should have mentioned my script interpreting level is below newborn baby. Could you explain more. I don't just copy what you put as an event script do I? Or do I have to change the i variable?
__________________
Reply With Quote
  #4    
Old Posted November 25th, 2012 (03:38 PM).
venom12's Avatar
venom12
Pokemon Crystal Rain Relased
 
Join Date: Sep 2006
Age: 23
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to venom12
just use on event call script
__________________
This signature has been disabled.
Exceeds signature height limit because of broken images.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
Reply With Quote
  #5    
Old Posted November 25th, 2012 (06:37 PM).
Rayd12smitty's Avatar
Rayd12smitty
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Thank you. I finally got to my computer. That worked perfectly. I didn't think it could be so simple :D
__________________
Reply With Quote
  #6    
Old Posted November 26th, 2012 (04:27 AM).
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
It isn't.

When you see a Pokémon, you also record its form and mark that as seen too. This allows it to be viewed in the Forms page of the Pokédex. In your case, you would want every form to be available. The Debug option "Fill boxes" does this; here's the code it uses (slightly tweaked for your purposes):

Code:
$Trainer.formseen=[] if !$Trainer.formseen
$Trainer.formlastseen=[] if !$Trainer.formlastseen
for i in 1..PBSpecies.maxValue
  $Trainer.seen[i]=true
  $Trainer.formlastseen[i]=[] if !$Trainer.formlastseen[i]
  $Trainer.formlastseen[i]=[0,0] if $Trainer.formlastseen[i]==[]
  if !$Trainer.formseen[i]
    $Trainer.formseen[i]=[[],[]]
  end
  for j in 0..27
    $Trainer.formseen[i][0][j]=true
    $Trainer.formseen[i][1][j]=true
  end
end
This is what you should use.
__________________
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 01:54 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
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 - 2014 The PokéCommunity / PokéCommunity.com.
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.