The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Create & Discover > Game Development > Pokémon Essentials
Reload this Page regional number 0
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.

Reply
 
Thread Tools
  #1    
Old April 29th, 2012 (2:02 PM). Edited April 30th, 2012 by Pokemon 3000.
Pokemon 3000's Avatar
Pokemon 3000 Pokemon 3000 is offline
huh?
 
Join Date: Sep 2005
Location: Germany
Gender: Male
Nature: Rash
Posts: 70
Hi there,

How can i give a pokémon the regional number 0 (e.g Victini)? The number 0 in "RegionalNumbers=" (pokemon.txt file) would effect that the pokemon doesn't appear in the regionaldex.

regards Pokemon 3000

@;aruno: Thanks a lot
Reply With Quote

Relevant Advertising!

  #2    
Old April 30th, 2012 (8:56 AM). Edited July 6th, 2013 by Maruno.
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Posts: 5,145
Add 1 to all the regional numbers in that Dex (e.g. Victini is 1, Snivy is 2, etc.), then edit the Pokédex scripts to subtract 1 from the regional number when displaying it in that Regional Dex.

EDIT: Here's the script changes you need to make.

First, in Settings, create an array like REGIONALDEXSHIFT=[4]. The 4 is the fifth Regional Dex defined (the first is 0, second is 1, etc.), and you should change that to whichever number it needs to be. You can put multiple numbers into this array to affect multiple Regional Dexes.

Next, go into PokemonPokedex. In def pbGetDexList, add the parts in red:

Code:
        shift=REGIONALDEXSHIFT.include?(pbGetPokedexRegion)
        dexlist.push([nationalSpecies,
           PBSpecies.getName(nationalSpecies),height,weight,i,shift])
In the second def drawItem (starting at around line 171), add the parts in red:

Code:
      text=_ISPRINTF("{1:03d}{2:s} {3:s}",@commands[index][5] ? indexNumber-1 : indexNumber," ",@commands[index][1])
    else
      text=_ISPRINTF("{1:03d}  ----------",@commands[index][5] ? indexNumber-1 : indexNumber)
Finally, in def pbChangeToDexEntry, add the part in red:

Code:
    indexNumber=pbGetRegionalNumber(pbGetPokedexRegion(),species)
    indexNumber=species if indexNumber==0
    indexNumber-=1 if REGIONALDEXSHIFT.include?(pbGetPokedexRegion)
__________________
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 GMT -8. The time now is 8:37 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2016 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 - 2016 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.

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