- 3
- Posts
- 10
- Years
- Seen May 15, 2024
Hello
I'm new to both scripting and the PC
I've been having problems with getting my NPC to walk away after speaking to you.
What it's meant to do:
The script is meant to have an NPC give the player a pokemon (Eevee) and then he is meant to walk away however he does not move.
any ideas on how to resolve this? the script i am using currently is in the spoiler below.
Thanks in advance.
'---------------
#org 0x2DD100
checkflag 0x420
if 0x1 goto 0x8801C73
msgbox 0x8801C7E MSG_YESNO '"[player]: A note? It reads: \n"Sor..."
compare LASTRESULT 0x1
if 0x1 goto 0x8801C2F
msgbox 0x8801CD1 MSG_NORMAL '"[player]: I'm no trainer.\pI can't..."
applymovement 0x04 0x801E1A
waitmovement 0x0
hidesprite 0x4
setflag 0x420
release
end
'---------------
#org 0x801C73
msgbox 0x8801D69 MSG_NORMAL '"Go home quickly"
release
end
'---------------
#org 0x801C2F
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8801CFF MSG_KEEPOPEN '"[black_fr]You received a Eevee!"
waitfanfare
closeonkeypress
setflag 0x420
msgbox 0x8801D1A MSG_YESNO '"[black_fr]Would you like to give a..."
compare LASTRESULT 0x1
if 0x1 call 0x8801C6C
msgbox 0x8801D4B MSG_NORMAL '"Thanks, take care of Eevee. \n Go ..."
release
end
'---------------
#org 0x801C6C
call 0x81A74EB
return
'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return
'---------
' Strings
'---------
#org 0x801C7E
= [player]: A note? It reads: \n"Sorry... Please take care \pof Eevee for me." Take Eevee?
#org 0x801CD1
= [player]: I'm no trainer.\pI can't handle pokemon.
#org 0x801D69
= Go home quickly
#org 0x801CFF
= [black_fr]You received a Eevee!
#org 0x801D1A
= [black_fr]Would you like to give a\nnickname to Eevee?
#org 0x801D4B
= Thanks, take care of Eevee. \n Go home quickly
#org 0x801C26
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE
I'm new to both scripting and the PC
I've been having problems with getting my NPC to walk away after speaking to you.
What it's meant to do:
The script is meant to have an NPC give the player a pokemon (Eevee) and then he is meant to walk away however he does not move.
any ideas on how to resolve this? the script i am using currently is in the spoiler below.
Thanks in advance.
Spoiler:
'---------------
#org 0x2DD100
checkflag 0x420
if 0x1 goto 0x8801C73
msgbox 0x8801C7E MSG_YESNO '"[player]: A note? It reads: \n"Sor..."
compare LASTRESULT 0x1
if 0x1 goto 0x8801C2F
msgbox 0x8801CD1 MSG_NORMAL '"[player]: I'm no trainer.\pI can't..."
applymovement 0x04 0x801E1A
waitmovement 0x0
hidesprite 0x4
setflag 0x420
release
end
'---------------
#org 0x801C73
msgbox 0x8801D69 MSG_NORMAL '"Go home quickly"
release
end
'---------------
#org 0x801C2F
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8801CFF MSG_KEEPOPEN '"[black_fr]You received a Eevee!"
waitfanfare
closeonkeypress
setflag 0x420
msgbox 0x8801D1A MSG_YESNO '"[black_fr]Would you like to give a..."
compare LASTRESULT 0x1
if 0x1 call 0x8801C6C
msgbox 0x8801D4B MSG_NORMAL '"Thanks, take care of Eevee. \n Go ..."
release
end
'---------------
#org 0x801C6C
call 0x81A74EB
return
'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return
'---------
' Strings
'---------
#org 0x801C7E
= [player]: A note? It reads: \n"Sorry... Please take care \pof Eevee for me." Take Eevee?
#org 0x801CD1
= [player]: I'm no trainer.\pI can't handle pokemon.
#org 0x801D69
= Go home quickly
#org 0x801CFF
= [black_fr]You received a Eevee!
#org 0x801D1A
= [black_fr]Would you like to give a\nnickname to Eevee?
#org 0x801D4B
= Thanks, take care of Eevee. \n Go home quickly
#org 0x801C26
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE