- 72
- Posts
- 11
- Years
- Seen Dec 18, 2017
Help me with this script please! I'm using XSE 1.1.1 and when I debug an error screen comes up saying this.
(Error 13 "Type mismatch" on line 9.
Missing #define.)
Here is the script.
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x1200
if 0x1 goto @done
msgbox @question 0x5
compare LASTRESULT 0x1
if 0x1 goto @givepokemon
msgbox @nothanks 0x6
release
end
#org @done
msgbox @checkup 0x6
release
end
#org @givepokemon
msgbox @thanks 0x6
givepokemon 0x5E 0x64 0x00 0x00 0x00 0x00
fanfare 0x13E
msgbox @recieved 0x6
waitfanfare
setflag 0x1200
msgbox @thanks2 0x6
release
end
#org @question
= Hey there!\pYou look like a nice person.\nWould you like this Gengar?
#org @nothanks
= Oh? That's too bad.\pCome back if you change your mind.
#org @thanks
= Oh! That's GREAT!\pHere you go!
#org @thanks2
= Thanks again. I think it will have\nmore fun with you than with me.
#org @recieved
= \v\h01 recieved a GENGAR!
#org @checkup
= How's that Gengar doing?\nHopfully good.
(Error 13 "Type mismatch" on line 9.
Missing #define.)
Here is the script.
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x1200
if 0x1 goto @done
msgbox @question 0x5
compare LASTRESULT 0x1
if 0x1 goto @givepokemon
msgbox @nothanks 0x6
release
end
#org @done
msgbox @checkup 0x6
release
end
#org @givepokemon
msgbox @thanks 0x6
givepokemon 0x5E 0x64 0x00 0x00 0x00 0x00
fanfare 0x13E
msgbox @recieved 0x6
waitfanfare
setflag 0x1200
msgbox @thanks2 0x6
release
end
#org @question
= Hey there!\pYou look like a nice person.\nWould you like this Gengar?
#org @nothanks
= Oh? That's too bad.\pCome back if you change your mind.
#org @thanks
= Oh! That's GREAT!\pHere you go!
#org @thanks2
= Thanks again. I think it will have\nmore fun with you than with me.
#org @recieved
= \v\h01 recieved a GENGAR!
#org @checkup
= How's that Gengar doing?\nHopfully good.