Hi guys, I'm writing a script to replace the traditional starter pokemon script. I made one where a person asks you three yes/no questions and if you say yes, the person gives you a pokemon and leaves. When I try to compile the script in XSE, it keeps on giving an error, which I have linked a picture.
Can you guys help? XD
Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @hey 0x6
msgbox @items 0x6
giveitem 0x4 0x5 MSG_OBTAIN
msgbox @pokemon 0x6
call @givepokemon
msgbox @gohome 0x6
applymovement 0xB @outoftheway
waitmovement 0x0
applymovement 0xFF @moveup
waitmovement 0x0
applymovement 0xB @stepleft
waitmovement 0x0
msgbox @meetme 0x6
applymovement 0xB @leave
waitmovement 0x0
hidesprite 0xB
setflag 0x91C
release
end
#org @outoftheway
#raw 0x11
#raw 0x13
#raw 0x6
#raw 0xFE
#org @moveup
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x0
#raw 0xFE
#org @stepleft
#raw 0x12
#raw 0x1
#raw 0xFE
#org @leave
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
#org @hey
= \v\h02: Hey, \v\h01! How's it\ngoing, brother? Well, I just came\lfrom Jikan Town, and the Professor\lthere wanted me to give you some\lancient Pokémon to start you off\lon your journey!
#org @items
= Of course, I have a present for\nyou too! Here!
#org @pokemon
= Oh, and before I forget, here are\nthe Pokémon the Professor gave me!
#org @gohome
= I'm going to go home now to do\nsomething really quick.
#org @meetme
= Meet me at the entrance of the\ncave at the end of Route 1, okay?
#org @givepokemon
msgbox @bulb 0x5
compare LASTRESULT 0x1
if 0x1 call @givebulb
checkflag 0x92C
if 0x1 return
msgbox @chapples 0x5
compare LASTRESULT 0x1
if 0x1 call @givecharm
checkflag 0x92C
if 0x1 return
msgbox @squirt 0x5
compare LASTRESULT 0x1
if 0x1 call @givesquirt
compare LASTRESULT 0x0
if 0x1 msgbox @nothing 0x6
return
#org @bulb
= So, do you want a Bulbasaur?
#org @chapples
= Okay, how about a Charmander?
#org @squirt
= Last choice is a Squirtle.
#org @nothing
= Well, you've got to pick\nSOMETHING! These are rare and\lancient!
goto @givepokemon
#org @givebulb
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotbulb 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @nickbulb 0x5
compare LASTRESULT 0x1
if 0x1 call @name
setflag 0x92C
return
#org @gotbulb
= \v\h01 recieved a Bulbasaur!
#org @nickbulb
= Do you want to give a nickname to\nBulbasaur?
#org @givecharm
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotcharm 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @nickcharm 0x5
compare LASTRESULT 0x1
if 0x1 call @name
setflag 0x92C
return
#org @gotcharm
= \v\h01 recieved a Charmander!
#org @nickcharm
= Do you want to give a nickname to\nCharmander?
#org @givesquirt
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotsquirt 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @nicksquirt 0x5
compare LASTRESULT 0x1
if 0x1 call @name
setflag 0x92C
return
#org @gotsquirt
= \v\h01 recieved a Squirtle!
#org @nicksquirt
= Do you want to give a nickname to\nSquirtle?
#org @name
call 0x1A74EB
return
#org @start
lock
faceplayer
msgbox @hey 0x6
msgbox @items 0x6
giveitem 0x4 0x5 MSG_OBTAIN
msgbox @pokemon 0x6
call @givepokemon
msgbox @gohome 0x6
applymovement 0xB @outoftheway
waitmovement 0x0
applymovement 0xFF @moveup
waitmovement 0x0
applymovement 0xB @stepleft
waitmovement 0x0
msgbox @meetme 0x6
applymovement 0xB @leave
waitmovement 0x0
hidesprite 0xB
setflag 0x91C
release
end
#org @outoftheway
#raw 0x11
#raw 0x13
#raw 0x6
#raw 0xFE
#org @moveup
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x0
#raw 0xFE
#org @stepleft
#raw 0x12
#raw 0x1
#raw 0xFE
#org @leave
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
#org @hey
= \v\h02: Hey, \v\h01! How's it\ngoing, brother? Well, I just came\lfrom Jikan Town, and the Professor\lthere wanted me to give you some\lancient Pokémon to start you off\lon your journey!
#org @items
= Of course, I have a present for\nyou too! Here!
#org @pokemon
= Oh, and before I forget, here are\nthe Pokémon the Professor gave me!
#org @gohome
= I'm going to go home now to do\nsomething really quick.
#org @meetme
= Meet me at the entrance of the\ncave at the end of Route 1, okay?
#org @givepokemon
msgbox @bulb 0x5
compare LASTRESULT 0x1
if 0x1 call @givebulb
checkflag 0x92C
if 0x1 return
msgbox @chapples 0x5
compare LASTRESULT 0x1
if 0x1 call @givecharm
checkflag 0x92C
if 0x1 return
msgbox @squirt 0x5
compare LASTRESULT 0x1
if 0x1 call @givesquirt
compare LASTRESULT 0x0
if 0x1 msgbox @nothing 0x6
return
#org @bulb
= So, do you want a Bulbasaur?
#org @chapples
= Okay, how about a Charmander?
#org @squirt
= Last choice is a Squirtle.
#org @nothing
= Well, you've got to pick\nSOMETHING! These are rare and\lancient!
goto @givepokemon
#org @givebulb
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotbulb 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @nickbulb 0x5
compare LASTRESULT 0x1
if 0x1 call @name
setflag 0x92C
return
#org @gotbulb
= \v\h01 recieved a Bulbasaur!
#org @nickbulb
= Do you want to give a nickname to\nBulbasaur?
#org @givecharm
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotcharm 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @nickcharm 0x5
compare LASTRESULT 0x1
if 0x1 call @name
setflag 0x92C
return
#org @gotcharm
= \v\h01 recieved a Charmander!
#org @nickcharm
= Do you want to give a nickname to\nCharmander?
#org @givesquirt
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotsquirt 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @nicksquirt 0x5
compare LASTRESULT 0x1
if 0x1 call @name
setflag 0x92C
return
#org @gotsquirt
= \v\h01 recieved a Squirtle!
#org @nicksquirt
= Do you want to give a nickname to\nSquirtle?
#org @name
call 0x1A74EB
return
Can you guys help? XD