- 86
- Posts
- 10
- Years
- Seen Dec 19, 2018
Hi! I'm pretty new around here, and I've encountered a problem with a script. Scripting has never been a strong suit of mine so I'd appreciate some help figuring this thing out.
Basically, I need the script to run when leaving an area of the Rusturf tunnel that only triggers after you defeat the Aqua grunt. It's right on the steps you take to get in and out on the Rustboro side, so I need it to not trigger on the way up but then go off when you walk back down after the battle. I figured it be just a simple checkflag but it turned out to be not so simple.
As of now, I'm just trying to get a message box to appear just so I know the script is activating properly. It doesn't activate before fighting the aqua grunt, which is good, but after the fight, if I step on it, it freezes. The flag I used is one that is set by the aqua grunt in the original unedited game. Trying to add another flag to that script causes an entirely different issue.
I set it up with a dynamic, but when compiled and saved it automatically changed it to normal offsets, which I'm pretty sure is normal. Here's the script.
Basically, I need the script to run when leaving an area of the Rusturf tunnel that only triggers after you defeat the Aqua grunt. It's right on the steps you take to get in and out on the Rustboro side, so I need it to not trigger on the way up but then go off when you walk back down after the battle. I figured it be just a simple checkflag but it turned out to be not so simple.
As of now, I'm just trying to get a message box to appear just so I know the script is activating properly. It doesn't activate before fighting the aqua grunt, which is good, but after the fight, if I step on it, it freezes. The flag I used is one that is set by the aqua grunt in the original unedited game. Trying to add another flag to that script causes an entirely different issue.
I set it up with a dynamic, but when compiled and saved it automatically changed it to normal offsets, which I'm pretty sure is normal. Here's the script.
Spoiler:
'---------------
#org 0x803B16
checkflag 0x8F
if 0x1 goto 0x8804825
end
'---------------
#org 0x804825
msgbox 0x88697FA MSG_KEEPOPEN '"This script runs now!\p If you're ..."
end
'---------
' Strings
'---------
#org 0x8697FA
= This script runs now!\p If you're seeing this, die.\p
#org 0x803B16
checkflag 0x8F
if 0x1 goto 0x8804825
end
'---------------
#org 0x804825
msgbox 0x88697FA MSG_KEEPOPEN '"This script runs now!\p If you're ..."
end
'---------
' Strings
'---------
#org 0x8697FA
= This script runs now!\p If you're seeing this, die.\p