PlatniumPiano
You are now breathing manually
- 479
- Posts
- 16
- Years
- Yesterday
- Seen Dec 27, 2010
Hey everyone, sorry for the noob question. I have been looking all morning and have yet to see a simple answet to this. I change some of the script from the game, then I try to save, but it just makes a new file for that script! Then when I close the script and open it again, it opens the old script. I can open mine, but it opens in a new tab. Even when I go 'compile' it still saves as a new file. Any thoughts on how I can implement my script?
I used to have this exact same problem lol. If you are using XSE, what you do is:
1.Write your script
2.Click on the "show log" button, so it is ON.
3.Hit "Compile" and when you do, a small box should pop up with your script in it.
4. At the bottom of this little box, there are one or many offsets there. If you used, say @start to start your script, you highlight that one and hit the copy button.
5.Once the @start (or whatever the first #org @something was) offset is copied, minimize XSE and paste the new offset into the advance map box where it first said "open script" but don't forget to only paste the Numbers, and to keep the Dollar sign.
6.Hit open script, and you should open a new script similar to what you wrote! ^_^
Any questions, just ask me.
EDIT: I HAVE A SUPER NOOBY PROBLEM:
So when I write a script with a flag, in which one of the first commands is to check for the flag, do the event, then set that flag so it can't happen again. This works when I am in the same building...
HOWEVER when I exit the room or map the script is located in and talk to whatever person I had the script with, It starts up again, like I never set the flag. This happens with every script I do that involves flags.
I.E.
Code:
#dynamic 0x80000
#org @start
lock
faceplayer
checkflag 0x901
if 0x0 goto @set
release
end
#org @set
msgbox @you 0x6
setflag 0x901
release
end
#org @you
= You just set flag 901!
I am guessing that this should work. It does. I go up to this guy for the first time, I talk to him, he says "You just set flag 901!" and I talk to him again and he doesn't say nada. Perfect, right?
This is the part where I leave the building. Just because I feel stupid, I decide to go back in there again. I talk to the guy and what does he say?
"You just set flag 901!"
I'm using Ruby Version with most recent versions of Amap and XSE, so does my rom clear all flags when I leave a map and re-enter? Or am I missing something huge?
Last edited: