- 54
- Posts
- 16
- Years
- Seen May 21, 2011
Alright, so after the third hidesprite command, the fourth doesn't work. The person event number is 10, so A in hex. I've used the exact same command, yet I fail to see what is wrong... I set the Person ID to 1003, just like the flag in the script.
Thanks in advance for any help.
#dynamic 0x8033A1
#org @start
checkflag 0x828
if 0x1 goto @end
showpokepic 0x4 0x3 0x3
msgbox @char 0x5
compare 0x800D 0x1
if 0x0 goto @end
hidesprite 0x8
setflag 0x1000
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
hidepokepic
msgbox @rec 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare 0x800D 0x1
if 0x1 gosub @name
closeonkeypress
applymovement 0xFF @play1
waitmovement 0xFF
applymovement 0x5 @redwood
waitmovement 0x5
applymovement 0x4 @james
waitmovement 0x4
msgbox @redwood2 0x2
applymovement 0x4 @james2
waitmovement 0x4
applymovement 0xFF @play2
waitmovement 0xFF
applymovement 0x4 @james3
waitmovement 0x4
applymovement 0xFF @play3
applymovement 0x5 @redwood3
applymovement 0x4 @james4
waitmovement 0x0
msgbox @james12 0x6
hidesprite 0x7
setflag 0x1001
applymovement 0x4 @james5
waitmovement 0x4
applymovement 0xFF @play4
applymovement 0x5 @redwood4
waitmovement 0x0
msgbox @redwood12 0x2
applymovement 0x5 @redwood5
waitmovement 0x5
hidesprite 0x9
setflag 0x1002
applymovement 0x5 @redwood6
waitmovement 0x5
hidesprite 0xA
setflag 0x1003
applymovement 0x5 @redwood7
waitmovement 0x5
setflag 0x828
end
#org @char
= [blue_fr]Redwood: So you choose the\nCharmander then? A worthy choice\lfor a worthy trainer!
#org @end
closeonkeypress
hidepokepic
end
#org @rec
= [player] received the Charmander!
#org @name
call 0x1A74EB
return
#org @nick
= Would you like to give a\nnickname to Charmander?
#org @play1
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood
#raw 0x0
#raw 0xFE
#org @james
#raw 0x1
#raw 0xFE
#org @james2
#raw 0x10
#raw 0x12
#raw 0xFE
#org @play2
#raw 0x0
#raw 0xFE
#org @james3
#raw 0x12
#raw 0x11
#raw 0xFE
#org @play3
#raw 0x02
#raw 0xFE
#org @redwood3
#raw 0x02
#raw 0xFE
#org @james4
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x01
#raw 0xFE
#org @james5
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood2
= [blue_fr]Redwood: Good choice! Now it's your\nturn James.
#org @james12
= [blue_fr]James: I'll pick the Mudkip then!
#org @play4
#raw 0x01
#raw 0xFE
#org @redwood4
#raw 0x00
#raw 0xFE
#org @redwood12
= [blue_fr]Redwood: Excellent! Ah yes, I have\none last thing to give to you two.
#org @redwood5
#raw 0x11
#raw 0x11
#raw 0x22
#raw 0xFE
#org @redwood6
#raw 0x13
#raw 0x22
#raw 0xFE
#org @redwood7
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE
Thanks in advance for any help.
Spoiler:
#dynamic 0x8033A1
#org @start
checkflag 0x828
if 0x1 goto @end
showpokepic 0x4 0x3 0x3
msgbox @char 0x5
compare 0x800D 0x1
if 0x0 goto @end
hidesprite 0x8
setflag 0x1000
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
hidepokepic
msgbox @rec 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare 0x800D 0x1
if 0x1 gosub @name
closeonkeypress
applymovement 0xFF @play1
waitmovement 0xFF
applymovement 0x5 @redwood
waitmovement 0x5
applymovement 0x4 @james
waitmovement 0x4
msgbox @redwood2 0x2
applymovement 0x4 @james2
waitmovement 0x4
applymovement 0xFF @play2
waitmovement 0xFF
applymovement 0x4 @james3
waitmovement 0x4
applymovement 0xFF @play3
applymovement 0x5 @redwood3
applymovement 0x4 @james4
waitmovement 0x0
msgbox @james12 0x6
hidesprite 0x7
setflag 0x1001
applymovement 0x4 @james5
waitmovement 0x4
applymovement 0xFF @play4
applymovement 0x5 @redwood4
waitmovement 0x0
msgbox @redwood12 0x2
applymovement 0x5 @redwood5
waitmovement 0x5
hidesprite 0x9
setflag 0x1002
applymovement 0x5 @redwood6
waitmovement 0x5
hidesprite 0xA
setflag 0x1003
applymovement 0x5 @redwood7
waitmovement 0x5
setflag 0x828
end
#org @char
= [blue_fr]Redwood: So you choose the\nCharmander then? A worthy choice\lfor a worthy trainer!
#org @end
closeonkeypress
hidepokepic
end
#org @rec
= [player] received the Charmander!
#org @name
call 0x1A74EB
return
#org @nick
= Would you like to give a\nnickname to Charmander?
#org @play1
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood
#raw 0x0
#raw 0xFE
#org @james
#raw 0x1
#raw 0xFE
#org @james2
#raw 0x10
#raw 0x12
#raw 0xFE
#org @play2
#raw 0x0
#raw 0xFE
#org @james3
#raw 0x12
#raw 0x11
#raw 0xFE
#org @play3
#raw 0x02
#raw 0xFE
#org @redwood3
#raw 0x02
#raw 0xFE
#org @james4
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x01
#raw 0xFE
#org @james5
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE
#org @redwood2
= [blue_fr]Redwood: Good choice! Now it's your\nturn James.
#org @james12
= [blue_fr]James: I'll pick the Mudkip then!
#org @play4
#raw 0x01
#raw 0xFE
#org @redwood4
#raw 0x00
#raw 0xFE
#org @redwood12
= [blue_fr]Redwood: Excellent! Ah yes, I have\none last thing to give to you two.
#org @redwood5
#raw 0x11
#raw 0x11
#raw 0x22
#raw 0xFE
#org @redwood6
#raw 0x13
#raw 0x22
#raw 0xFE
#org @redwood7
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE