- 3
- Posts
- 6
- Years
- Seen Jun 20, 2018
So I've been getting into coding and figured a good way to start is by developing a rom hack. I get the basics of XSE and so far I've been able to make simple dialogue boxes and whatnot, but as I moved on to the more advanced stuff things got a little funky.
I figured I might as well throw in a guy who gives you a Chikorita to test my scripting capabilities. The thing is, XSE keeps giving me the "no #org/#seek directives found" error when I try to compile it.
#dynamic 0x71AC01
#org @start
lock
checkflag 0x250
if 0x1 jump :end
msgbox @1 0x5
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon CHIKORITA 0x5 PEARL 0 0 0
setflag 0x25
0storepokemon 0 CHIKORITA
msgbox @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end
#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end
#org @1
= Hey!\pI run a Chikorita farm! \pYou probably already know\nthat 'cause you live here. \pYou look like a good trainer, \nso how about you take this baby\nout on some adventure of yours?
#org @noroom-msg
= You don't have enough room in your party.
#org @get-msg
= Aquired Chikorita!
Anyone know what's up? I'd appreciate as much advice as possible as I'm a slow learner when it comes to this complicated stuff.
I figured I might as well throw in a guy who gives you a Chikorita to test my scripting capabilities. The thing is, XSE keeps giving me the "no #org/#seek directives found" error when I try to compile it.
Spoiler:
#dynamic 0x71AC01
#org @start
lock
checkflag 0x250
if 0x1 jump :end
msgbox @1 0x5
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon CHIKORITA 0x5 PEARL 0 0 0
setflag 0x25
0storepokemon 0 CHIKORITA
msgbox @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end
#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end
#org @1
= Hey!\pI run a Chikorita farm! \pYou probably already know\nthat 'cause you live here. \pYou look like a good trainer, \nso how about you take this baby\nout on some adventure of yours?
#org @noroom-msg
= You don't have enough room in your party.
#org @get-msg
= Aquired Chikorita!
Anyone know what's up? I'd appreciate as much advice as possible as I'm a slow learner when it comes to this complicated stuff.