• 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.

[Script✓] SOLVED: Why is my script changing when I compile it?

Momoro

I'm gonna put some dirt in your eye..
  • 269
    Posts
    5
    Years
    Hello 🙂

    I'm trying to set a variable using setvar (I'm using XSE by the way) and for some reason, it changes.

    Here's what I want:

    Code:
    hidepokepic
    hidesprite LASTTALKED
    setflag 0x201
    givepokemon 0x158 0x5 0x0 0x0 0x0 0x0
    setvar 0x4051 0x1
    msgbox @mes 0x2
    end

    Don't worry, I added a #dynamic label for the @mes pointer.

    But, when I compile it, it turns into this:

    Code:
    hidepokepic
    hidesprite LASTTALKED
    setflag 0x201
    givepokemon 0x158 0x5 0x0 0x0 0x0 0x0
    setvar 0x4051 0x1
    loadpointer 0x0 0xD17AE100

    Any idea why?
     
    Last edited:
    Solved it:

    It only does this when you go over the offset's space limit, which I did 😅 Re-pointing it fixed the problem entirely.

    Hope this clears it up for anyone else having this problem!
     
    Back
    Top