• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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!
  • 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.

[Script] [Emerald] I use dynamic offsets and I still get glitches

McPaul

On my way to become a controversial and hated memb
  • 289
    Posts
    7
    Years
    My rom is expanded (32 Mo) and I use dynamic offsets for my scripts, but I don't know why my scripts are still glitching some other scripts. I'm doing it wrong? Here is an example of what I did:

    What I did:
    '---------------
    #dynamic 0xDE4030

    #org @main
    giveitem 0x11F 0x1 MSG_OBTAIN
    end


    What I get:
    [PokeCommunity.com] [Emerald] I use dynamic offsets and I still get glitches

    What I did:
    '---------------
    #dynamic 0xDE4030

    #org @main
    giveitem 0x11E 0x1 MSG_OBTAIN
    end


    What I get:
    [PokeCommunity.com] [Emerald] I use dynamic offsets and I still get glitches
    (My message gets stuck in a loop I can't escape)

    What am I doing wrong? I thought that the good part of dynamic offsets was that they don't overwrite themselves.

    Thanks for your answers.
     
    Last edited:
    If you're trying to give items you should set flags to prevent the player from receiving the item infinite times.

    Also, are you assigning your new script offsets to the person events in AdvanceMap?

    For example, with your first picture, the person event offset in AdvanceMap shouldn't be this:

    Spoiler:


    Both person events should have your new script offsets assigned.
     
    Back
    Top