• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • 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.

[Map] custom pokemon encounters on grass

  • 5
    Posts
    3
    Years
    Hey so I'm pretty new to rom-hacking so sorry for the not so great code in advance

    So I'm making a rom-hack and have added all the 18 alola pokemon's but I don't know how to make them randomly encounter on grass as I can't find them in the dropdown of advance map grass encounters

    For now, I was just using a script to spawn them when the player collides with the tile but I later realized doing this for all the different grass patches wouldn't be a Great Idea
    So how can I have let's say sylveon encounter on the grass?

    Heres the code I was using for now
    Code:
    #dynamic 0x800000
    #org @start
    random 0x1
    compare lastresult 0x0
    if 0x1 goto @encounter
    end 
    
    #org @encounter
    random 0x2
    compare lastresult 0x0
    if 0x1 call @sylveon
    
    compare lastresult 0x1
    if 0x1 call @umbreon
    
    #org @sylveon
    wildbattle 0x1B8 0x64 0x0
    return
    
    #org @umbreon
    wildbattle 0xC5 0x64 0x0
    return
     
    Back
    Top