• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

[Question] Problem With Wild Encounters

  • 311
    Posts
    5
    Years
    So, one of my routes ended up pretty big, so I decided to go with three separate encounter lists, so that as you progress through the route, the Pokemon change. The problem is the Pokemon from the two new encounter methods don't show up, but the regular 'Land' encounters do. Here's the scripts I edited. If there are any problems, or other things to try, please let me know.
    Code:
      Grass2          = 26
      Grass3          = 27
    I first defined the new terrain tags for the grass copies.
    Code:
      Grass2       = 13
      Grass3       = 14
    Code:
       "Grass2",
       "Grass3"
    Code:
       [20,20,10,10,10,10,5,5,4,4,1,1],
       [20,20,10,10,10,10,5,5,4,4,1,1]
    Code:
      25,25]
      1,1]
    next I defined the encounter methods in PokemonEncounters, including the EnctypeChances, densities, and compile densities
    Code:
    def isGrass2?
          return false if @density==nil
          return @enctypes[EncounterTypes::Grass2] ? true : false
        end
         
       def isGrass3?
          return false if @density==nil
          return @enctypes[EncounterTypes::Grass3] ? true : false
        end
    then I attached the terrain tag to the encounter method
    Code:
    elsif self.isGrass2?
          enctype=EncounterTypes::Grass2
          return enctype
        elsif self.isGrass3?
          enctype=EncounterTypes::Grass3
          return enctype
    set up the enctype in def pbEncounterType
    Code:
    elsif self.isGrass2?
          return pbIsGrass2Tag?($game_map.terrain_tag($game_player.x,$game_player.y))
        elsif self.isGrass3?
          return pbIsGrass3Tag?($game_map.terrain_tag($game_player.x,$game_player.y))
    and finally defined it in def isEncounterPossibleHere?


    Anyone know what's wrong? Please let me know.
     
    Last edited:
    Back
    Top