Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] regional number 0

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.

Thread Tools
Old April 29th, 2012 (02:02 PM). Edited April 30th, 2012 by Pokemon 3000.
Pokemon 3000's Avatar
Pokemon 3000
Join Date: Sep 2005
Location: Germany
Gender: Male
Nature: Rash
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
Old April 30th, 2012 (08:56 AM). Edited July 6th, 2013 by Maruno.
Maruno's Avatar
Lead Dev of Pokémon Essentials
Join Date: Jan 2008
Location: England
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:

In the second def drawItem (starting at around line 171), add the parts in red:

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

    indexNumber=species if indexNumber==0
    indexNumber-=1 if REGIONALDEXSHIFT.include?(pbGetPokedexRegion)
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 UTC -8. The time now is 09:53 AM.