Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Seen/Own all Pokemon

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 November 25th, 2012 (02:24 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 642
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 November 25th, 2012 (02:51 PM).
venom12's Avatar
venom12 venom12 is offline
Pokemon Crystal Rain Relased
 
Join Date: Sep 2006
Age: 24
Gender: Male
Nature: Adamant
Posts: 523
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
Reply With Quote
  #3    
Old November 25th, 2012 (03:21 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 642
Quote originally posted by venom12:
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 November 25th, 2012 (03:38 PM).
venom12's Avatar
venom12 venom12 is offline
Pokemon Crystal Rain Relased
 
Join Date: Sep 2006
Age: 24
Gender: Male
Nature: Adamant
Posts: 523
Send a message via Windows Live Messenger to venom12
just use on event call script
Reply With Quote
  #5    
Old November 25th, 2012 (06:37 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 642
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 November 26th, 2012 (04:27 AM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 3,979
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

Forum Jump


All times are UTC -8. The time now is 05:18 AM.