- 3
- Posts
- 3
- Years
- Seen May 4, 2022
Hi all, I'm very new to romhacking, so please bear with me. I am hacking an Emerald Liberate based ROM (for all of the new updates and goodies), and while changing some random things, all of a sudden my script does not work anymore. I had this same error "This is a test message""This is a signpost" once before, but I managed to fix that by sheer luck. Now, whatever I try to do that seems logical, it won't work. I've seen this thread where someone links a list to all the Var/Flag location and uses. I use only the Vars from 0x6000 onwards, as I think that is a safe bet (might be wrong on that tho). I did change the Var value to a few random numbers, but the same message keeps popping up.
In the Advance map, I do have the right flag and value set in the Map Script. If I change that to not match, the script would just repeat itself.
So my actual question would be: Where does this error come from (and how to prevent it of course), and how can I fix it?
Code here:
#org 0xC305FA
lock
msgbox 0x8C307E6 MSG_NORMAL '"Jeff: FINALLY! That took you long\..."
applymovement 0x1 0x8D6D75E
applymovement MOVE_PLAYER 0x8D6D76D
waitmovement 0x0
msgbox 0x8D6C3E9 MSG_NORMAL '"Doc Luom: Ahem. Thank you for that..."
msgbox 0x8D6CC60 MSG_NORMAL '"BUT FIRST, before you all take\nof..."
applymovement 0x3 0x8D6D77B
waitmovement 0x0
giveitem 0x10D 0x1 MSG_OBTAIN
applymovement 0x3 0x8D6D782
waitmovement 0x0
msgbox 0x8D6D420 MSG_NORMAL '"Doc Luom: Each of these [green_em]..."
applymovement 0x2 0x8D6D78A
applymovement MOVE_PLAYER 0x8D6D78D
applymovement 0x1 0x8D6D78D
waitmovement 0x0
msgbox 0x8D6D617 MSG_NORMAL '"Lisa: I think it is fairest to\nha..."
applymovement 0x1 0x8D6D790
waitmovement 0x0
msgbox 0x8D6D720 MSG_NORMAL '"Jeff: AHHHH MAAANNNN!!!\p[player]:..."
applymovement 0x1 0x8D6D793
applymovement 0x2 0x8D6D793
applymovement MOVE_PLAYER 0x8D6D793
waitmovement 0x0
setvar 0x6015 0x1 <--- Always happens at this point
release
end
In the Advance map, I do have the right flag and value set in the Map Script. If I change that to not match, the script would just repeat itself.
So my actual question would be: Where does this error come from (and how to prevent it of course), and how can I fix it?
Code here:
Spoiler:
#org 0xC305FA
lock
msgbox 0x8C307E6 MSG_NORMAL '"Jeff: FINALLY! That took you long\..."
applymovement 0x1 0x8D6D75E
applymovement MOVE_PLAYER 0x8D6D76D
waitmovement 0x0
msgbox 0x8D6C3E9 MSG_NORMAL '"Doc Luom: Ahem. Thank you for that..."
msgbox 0x8D6CC60 MSG_NORMAL '"BUT FIRST, before you all take\nof..."
applymovement 0x3 0x8D6D77B
waitmovement 0x0
giveitem 0x10D 0x1 MSG_OBTAIN
applymovement 0x3 0x8D6D782
waitmovement 0x0
msgbox 0x8D6D420 MSG_NORMAL '"Doc Luom: Each of these [green_em]..."
applymovement 0x2 0x8D6D78A
applymovement MOVE_PLAYER 0x8D6D78D
applymovement 0x1 0x8D6D78D
waitmovement 0x0
msgbox 0x8D6D617 MSG_NORMAL '"Lisa: I think it is fairest to\nha..."
applymovement 0x1 0x8D6D790
waitmovement 0x0
msgbox 0x8D6D720 MSG_NORMAL '"Jeff: AHHHH MAAANNNN!!!\p[player]:..."
applymovement 0x1 0x8D6D793
applymovement 0x2 0x8D6D793
applymovement MOVE_PLAYER 0x8D6D793
waitmovement 0x0
setvar 0x6015 0x1 <--- Always happens at this point
release
end