Code:
#dynamic 0x900132
#org 0x9002FA
lock
faceplayer
checkflag 0x1032
if 0x1 goto 0x8900312
setflag 0x1032
msgbox 0x8900320 '"Set!"
callstd 0x4
release
end
'-----------------------
#org 0x900312
message @choose
boxset 5
compare LASTRESULT 1
if b_true goto @yes
compare LASTRESULT 2
if b_true goto @no
release
end
#org @yes
givepokemon 0x92 0x5 0x0 0x0 0x0
message @yay
setflag 0x800
fanfare 0x13E
waitfanfare
release
end
#org @no
message @next
boxset 5
compare LASTRESULT 1
if b_true goto @yes1
compare LASTRESULT 0
if b_true goto @no1
release
end
#org @yes1
givepokemon 0x88 0x5 0x0 0x0 0x0
message @nay
setflag 0x800
fanfare 0x13E
waitfanfare
release
end
#org @no1
message @Bad
callstd 0x4
release
end
'---------
' Strings
'---------
#org 0x900320
= Hello, you look like you\nwant a pokemon.\pI have an extra just talk\nto me again.
#org @choose
= Do you want a Ghastly?
#org @next
= Well,then do you\n want a Grimer?
#org @bad
= Well, talk to me\nagain if you\pchange your mind!
#org @yay
= [player] recieved a\n Ghastly!
#org @nay
= [player] recieved a\n Grimer!
Umm, when I try to compile it gives me a mismatch on givepokemon, all though I do not know what is wrong with it. I took the part with givepokemon out, and it compiled, but it cut out huge chunks of the script, which messed the game up.
If anyone knows how to fix may you please help me.
The code turns into this when I take the givepokemon out and compile
Code:
'-----------------------
#org 0x9002FA
lock
faceplayer
checkflag 0x1032
if 0x1 goto 0x8900312
setflag 0x1032
msgbox 0x8900320 '"Hello, you look like you\nwant a po..."
callstd 0x4
release
end
'-----------------------
#org 0x900312
msgbox 0x8900BCC '"Do you want a Ghastly?"
callstd 0x5
compare LASTRESULT 0x1
if 0xC2 goto 0xE3E0E0D9
setvirtualaddress 0xE9E3ED00
nop
'---------
' Strings
'---------
#org 0x900320
= Hello, you look like you\nwant a pokemon.\pI have an extra just talk\nto me again.
#org 0x900BCC
= Do you want a Ghastly?
This is bad because it cut off like 6 of my strings and when I talk to the sprite, and the person says Do you want a ghastly, if you press yes or no she says the same thing again, and the message doesnt dissapear, I would just like to know whats wrong :( . Im using XSE, with Ruby All help greatly appreciated.