Quote:
Originally Posted by TheRealOCD
Hi, i have a few scripting problems!
Give Pokemon Script
Code:
#dynamic 0x71A544
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x6 0x50 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 call @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @1
= Hi, Can you take this Charizard\noff my hands?
#org @2
= Oh, That's okay!\nI'm sure someone else will want\lit!
#org @3
= [black_fr]You received a Charizard!
#org @4
= [black_fr]Would you like to give\na\nnickname to Charizard?
#org @5
= Take good care of my Charizard!
#org @6
= How is my Charizard feeling?
Wild Pokemon Script
Code:
#dynamic 0x71A7C8
#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x6 0x0
wildbattle 0x144 0x1E 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x201
release
end
#org @1
= Articuno: Cuuuuuno!
Here is the results of the scripts
Problems:
- Wrong pokemon
- wrong level's
- not facing player
Can someone help?
|
The reason when you talk to the old man, and he does not face you 'cause you don't have the faceplayer effect, so you should add a faceplayer effect:
Code:
#dynamic 0x71A544
#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x6 0x50 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 call @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @1
= Hi, Can you take this Charizard\noff my hands?
#org @2
= Oh, That's okay!\nI'm sure someone else will want\lit!
#org @3
= [black_fr]You received a Charizard!
#org @4
= [black_fr]Would you like to give\na\nnickname to Charizard?
#org @5
= Take good care of my Charizard!
#org @6
= How is my Charizard feeling?
The corrections is in
Bold.
I don't know why the Charizard became lvl. 80...
But I know why the wildbattle script is wrong...
You didn't convert it to hex.
Articuno's number is 144 change it to hex and:
90
so that should be:
wildbattle 0x90 ... ... ...
__________________
i don't want to have a signature