• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
4
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:

Momoro

I'm gonna put some dirt in your eye..
269
Posts
4
Years
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