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