- 8
- Posts
- 15
- Years
- Seen Jun 24, 2010
@ Wolfhead...
I like the way you post. Keep it up! ;)
Anyways, usually, as I've observed, NPC will start moving after a give(pokemon or item) commands, so I guess you can add another faceplayer command there.
The applymovement will freeze your game 'cause you forgot the end move command, which is 0xFE...
Remember that after the script makes an NPC move, add 0xFE to the end of the move script so it won't freeze. ;)Code:#org @move1 #raw 0x62 [COLOR=blue]0xFE[/COLOR]
Right ...
:cer_pissed: What a stupid thing to forget.
Anyway, the following script is corrected (in blue) and works like a charm.
Thank you.
Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @given
msgbox @text1 0x5
compare LASTRESULT 0x1
if b_true goto @showme
msgbox @text2 0x6
release
end
#org @showme
showpokepic 133 10 3
waitkeypress
hidepokepic
msgbox @text3 0x6
applymovement 4 @move1
waitmovement 0x0
msgbox @text4 0x5
lock
faceplayer
compare LASTRESULT 0x1
if b_true goto @giveme
msgbox @text5 0x6
release
end
#org @giveme
msgbox @text6 0x6
givepokemon 133 10 0 0 0 0
fanfare 0x13E
msgbox @text7 0x2
lock
faceplayer
waitfanfare
closeonkeypress
setflag 0x828
msgbox @text11 0x5
lock
faceplayer
compare LASTRESULT 0x1
if 0x1 gosub @nameit
msgbox @text8 0x2
release
end
#org @nameit
call 0x1A74EB
return
#org @given
msgbox @text10 0x6
release
end
#org @move1
#raw 0x62 0xFE
#org @text1
= [blue_fr][PLAYER]!\pLet me show you an interesting\n[green_fr]Pokémon[blue_fr].
#org @text2
= [blue_fr]Oh, too bad.
#org @text3
= [blue_fr]Magnificent, isn't it?\pI can't take care of it anymore,\nthough.
#org @text4
= [blue_fr]Do you want it?
#org @text5
= [blue_fr]Suit yourself.\nI'm positive someone else will take it.
#org @text6
= [blue_fr]Ok, here you go.
#org @text7
= [black_fr][PLAYER] received an [green_fr]Eevee[black_fr]!
#org @text8
= [blue_fr]Take good care of it, will you?
#org @text10
= [blue_fr]How is [green_fr]Eevee[blue_fr]?\nThank you for taking care of it.
#org @text11
= [black_fr]Do you want to name your [green_fr]Eevee[black_fr]?
But seriously, I'd never had thought that all these locks and faceplayers were necessary.