#org 0x160529 :(
Why is the script inserted there? If the script is glitching it might be because it is overlapping/colliding with other information.
Wait// Did you open this viridian forest trainer and just edit straight in? That'll be your problem.
What you need to do is point new scripts at empty/available space - even if its an edit, as if you extend the script it'll overwrite the next one.
Write your scripts like this:
Quote:
#dynamic 0x740000
#org @start
lock
faceplayer
checkflag 0x25E
if 0x1 goto @flagisset
msgbox 0x8190717 MSG_KEEPOPEN '"You don't have any Pokeballs?\nWel..."
checkitemroom 0x160 0x1
compare LASTRESULT 0x0
if 0x1 goto @next
...etc...
|
By using the dynamic command at the top you're asking XSE to find free space for each of your @pointers. If you do this any time you change/make an addition to a script (or making a brand new one) you shouldn't have problems with the script changing or deforming.
Here is a useful scripting tutorial:
http://www.pokecommunity.com/showthread.php?t=164276