- 5
- Posts
- 15
- Years
- Seen Feb 24, 2011
When i try to do the give pokemon script and compile it it says that there isnt enough bytes. I tried to use an offset with a higher byte ( it was 256 before and i changed it to 512) and it still didnt work.
When i try to do the give pokemon script and compile it it says that there isnt enough bytes. I tried to use an offset with a higher byte ( it was 256 before and i changed it to 512) and it still didnt work.
Can you post the script,its probably in the script where you messed up.
Spoiler:#dynamic 0x800000
#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 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @1
= Hello.\nSorry to trouble you.\nI can't take care\nof my Charmander.\pCan you take care of\nit for me?
#org @2
= That's okay.\pI'm sure someone else will\ntake it.
#org @3
= [black_fr]You received a Charmander!
#org @4
= [black_fr]Would you like to give a\nnickname to Charmander?
#org @5
= Please take care of\nCharmander.
#org @6
= Are you taking good care\nof Charmander?
just to point out that im doing this on emerald s i might have used a wrong hexnumber/code thing (sorry im new to scripting).Spoiler:#dynamic 0x801000
#org @start
checkflag 0x828
if 0x1 goto @done
lock
faceplayer
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x2
release
end
#org @take
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x2
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x2
release
end
#org @1
= Hello.\nSorry to trouble you.\lI can't take care of my\lCharmander.\pCan you take care of\nit for me?
#org @2
= That's okay.\pI'm sure someone else will\ntake it.
#org @3
= [black_fr]You received a Charmander!
#org @4
= [black_fr]Would you like to give a\nnickname to Charmander?
#org @5
= Please take care of\nCharmander.
#org @6
= Are you taking good care\nof Charmander?
This should work,yours worked fine for me but i fixed up the text a bit.
I am trying to make an person event to give a pokemon, but when ever i try to talk to the person it just locks, cause i hear the music but cant move, i never does the face player or any messages, i am new to scripting so its probably something simple but i have compared it to working scripts and it looks right.
I am trying to make an person event to give a pokemon, but when ever i try to talk to the person it just locks, cause i hear the music but cant move, i never does the face player or any messages, i am new to scripting so its probably something simple but i have compared it to working scripts and it looks right.
adiktus --im not sure what you mean but i put a pic up of my event in amap so hopefully you can help me understand
liuyanghejerry -i have tried various flags from 0x950 to 0x300 to 0xzzzz to now 0x10 but none worked(its firered)
here is a picture in amap maybe i am screw something up here
and thanks for your suggestions so far:classic:
The script below should work.You set the flag for the pokedex after you get the pokemon.Thats the flag it checks for inorder to give the pokemon.Just a small mistake.
Spoiler:#dynamic 0x
#org @start
checkflag 0x829
if 0x1 goto @give
msgbox @sorry 0x2
release
end
#org @give
checkflag 0x1000
if 0x1 goto @done
givepokemon 0x7E 0x7 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
setflag 0x1000
msgbox @yay 0x2
release
end
#org @done
msgbox @gave 0x2
release
end
#org @sorry
= Hello!\pMy name is Teh_PingasYTP!\pYou're in my hack!\pI'll tell you what.\pIf you come back to me\nafter you get the POK\h1BDEX,\pI'll give you something special!
#org @yay
= [player] obtained MAGMAR!\nCongradulations!\pIt's a very rare POK\h1BMON!\nTrain it well!
#org @gave
= text after recieve magmar
Hey, I need some help >.<
1. When I batch compile, it says "Too less parameters on line 6 (sometimes 7). The correct number is 2.
Help? :)
#dynamic 0x800000
#org @start
lock
checkflag 0x3e8
if 0x1 goto @done
message @introp 0x6
release
end
#org @done
release
end
#org @introp
= Where's that package?
#dynamic 0x800000
#org @start
Lock
checkflag 0x1022
if 0x1 goto @done
message @holdit 0x6
applymovement 0xFF @volg1
waitmovement 0x0
release
end
#org @done
release
end
#org @holdit 0x6
= I can't leave yet. I have to get\nthe package for Dad.
org @volg1
#raw 0x12
#raw 0xFE
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x1022
if 0x1 goto @done
message @package 0x6
setflag 0x1022
release
end
#org @done
release
end
#org @package
= This is the package that I have to\nbring Dad.\l[player] received the package!