vietazn654
A sound soul dwells within me
- 371
- Posts
- 15
- Years
- Age 30
- Virginia
- Seen Aug 21, 2014
Hey guys.
I'm trying to make a givepokemon script for my hack.
Version: Firered
Editor:XSE
The problem I have is that each time I try to compile it with the Batch Compiler i get a message that says #org/#seek directives not found. I looked earlier on the thread, and I saw a similar error, but the only problem in that person's script was that they used @dynamic instead of #dynamic. I have looked through my script, and I have no idea what I did wrong.
Here is the script:
Spoiler:#dynamic 0x800000
lock
faceplayer
#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 0x41 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 @done
msgbox @6 0x6
release
end
#org @name
call 0x1A74EB
return
#org @1
= [player], I want to give you a gift\nfor your birthday.\pThis was my prize pokemon\nwhen I was a trainer.\pWill you promise to take\ncare of it?
#org @2
= Well if you're sure...
#org @3
= You received Alakazam!
#org @4
=Would you like to give a\nnickname to Alakazam?
#org @5
=Take good care of Alakazam.
#org @6
=I can see you're taking good care of Alakazam.
If anyone can help than I would really appreciate it.
Thanks in advance!
um, try putting this:
Code:
#dynamic 0x800000
#org @start
[B]lock
faceplayer[/B]
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x41 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 @done
msgbox @6 0x6
release
end
#org @name
call 0x1A74EB
return
#org @1
= [player], I want to give you a gift\nfor your birthday.\pThis was my prize pokemon\nwhen I was a trainer.\pWill you promise to take\ncare of it?
#org @2
= Well if you're sure...
#org @3
= You received Alakazam!
#org @4
= Would you like to give a\nnickname to Alakazam?
#org @5
= Take good care of Alakazam.
#org @6
= I can see you're taking good care of Alakazam.
Last edited: