• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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