• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

regional number 0

  • 51
    Posts
    19
    Years
    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
     
    Last edited:
    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:
            [COLOR=Red]shift=[/COLOR][COLOR=Red][COLOR=Red]REGIONALDEXSHIFT.include?[/COLOR](pbGetPokedexRegion)[/COLOR]
            dexlist.push([nationalSpecies,
               PBSpecies.getName(nationalSpecies),height,weight,i[COLOR=Red],shift[/COLOR]])
    In the second def drawItem (starting at around line 171), add the parts in red:

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

    Code:
        indexNumber=pbGetRegionalNumber(pbGetPokedexRegion(),species)
        indexNumber=species if indexNumber==0
        [COLOR=Red]indexNumber-=1 if [/COLOR][COLOR=Red][COLOR=Red]REGIONALDEXSHIFT.include?[/COLOR](pbGetPokedexRegion)[/COLOR]
     
    Last edited:
    Back
    Top