Script XSE Error: "Type Mismatch on Line 21. Missing #define"
Binary ROM HackingNeed a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.
Don't want to keep bugging the community but this one's got me stumped, because I really can't see what's wrong with the script. I put it in the Spoliers box and pointed out Line 21.
Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @done
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @done
msgbox @3 0x6
release
end
#org @take
giveitem 0x4 0x1 MSG_OBTAIN THIS IS LINE 21 BTW
msgbox @3 0x6
setflag 0x200
release
end
#org @1
= Do you plan on catching any\nPokémon ahead?
#org @2
= Suit yourself. \pAnd here I was ready to give out\nfree Pokéballs...
#org @3
= Did you know Pokéballs have variants? \pGreat Balls and Ultra Balls are\njust a couple of 'em!
Very strange. Happens when I try to compile it btw