• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Map] How do I have grass tiles with unique enounters?

  • 15
    Posts
    4
    Years
    • Seen Nov 11, 2020
    Is there anyway to have multiple encounter tables? That way there can be dark grass tiles with tougher pokemon like in black and white.
     
    I am not sure about multiple encounter tables, but there is a "workaround" that I used while making my game.

    You can make a new grass block in the block editor that doesn't have the background byte 01 (which is used for encounters I believe), and just use a behavior byte of 02 which is grass animation.

    Now, since that new grass block will only have the grass animation and not actual encounters, you could put a script event there with a "random" command which will have a chance of an encounter. The nice thing about this is that you can put as many different pokemon species on that script event while using the "random" command which will generate a random number. You can then assign that number to a pokemon, and have the generator make a number which will yield an encounter with a specific pokemon. For example.

    #dynamic 0x800000
    #org @start
    random 0x5
    compare lastresult 0x4
    if 0x1 goto @encounter
    end '------------- In this first segment, I'm simply giving a 1 in 5 chance of an encounter happening on that specific grass tile

    '------------------------
    #org @encounter
    random 0x2
    compare lastresult 0x0
    if 0x1 call @bulbasaur

    compare lastresult 0x1
    if 0x1 call @squirtle

    end '---------------- Here is the part where I generate 2 numbers and call a wildbattle accordingly
    '-------------------------
    #org @bulbasaur
    wildbattle 0x1 0x5 0x0
    return

    #org @squirtle
    wildbattle 0x1 0x5 0x0
    return
     
    Last edited:
    Back
    Top