- 2
- Posts
- 14
- Years
- Seen Aug 16, 2011
I'm making my first hack, and I'm using LeafGreen. I accidentaly messed up Proffessor Oak's script in the lab, so I'm trying to transplant script from a clean rom, but for some reason XSE won't let me compile it. I'm as green as grass at scripting, so this may be a stupid question.
#org 0x169571
lock
faceplayer
checkflag 0x2
if 0x1 goto 0x81695DC
compare 0x4055 0x9
if 0x1 goto 0x81698DF
compare 0x4055 0x8
if 0x1 goto 0x8169A4A
checkflag 0x82C
if 0x1 goto 0x81699AA
compare 0x4052 0x1
if 0x1 goto 0x81698DF
compare 0x4055 0x6
if 0x1 goto 0x81698B2
compare 0x4057 0x1
if 0x4 goto 0x81695FA
compare 0x4055 0x4
if 0x1 goto 0x81695F0
compare 0x4055 0x3
if 0x1 goto 0x81695E6
msgbox 0x818E0F2 MSG_KEEPOPEN '"OAK: Now, [player].\pInside those ..."
release
end
This bit of the script is what XSE says the problem is. It says the line that starts with msgbox is missing a #define? Any help? I don't see what the problem is, I'm taking it straight from a working rom...
I might have messed up more, right now this is all XSE will tell me is wrong. If someone could give me a working script and explain what #define is, that would be great too.
#org 0x169571
lock
faceplayer
checkflag 0x2
if 0x1 goto 0x81695DC
compare 0x4055 0x9
if 0x1 goto 0x81698DF
compare 0x4055 0x8
if 0x1 goto 0x8169A4A
checkflag 0x82C
if 0x1 goto 0x81699AA
compare 0x4052 0x1
if 0x1 goto 0x81698DF
compare 0x4055 0x6
if 0x1 goto 0x81698B2
compare 0x4057 0x1
if 0x4 goto 0x81695FA
compare 0x4055 0x4
if 0x1 goto 0x81695F0
compare 0x4055 0x3
if 0x1 goto 0x81695E6
msgbox 0x818E0F2 MSG_KEEPOPEN '"OAK: Now, [player].\pInside those ..."
release
end
This bit of the script is what XSE says the problem is. It says the line that starts with msgbox is missing a #define? Any help? I don't see what the problem is, I'm taking it straight from a working rom...
I might have messed up more, right now this is all XSE will tell me is wrong. If someone could give me a working script and explain what #define is, that would be great too.