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,173
      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)
      __________________
      Go to the Pokémon Essentials Wiki

      | Downloads | Tutorials | Fangames |
      | All Animations Project |

      Follow me on Twitter: @maruno42


      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 9:50 PM.