Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in The Pit of Despair. |
Acmlm's Board - I3 Archive - The Pit of Despair - ScriptEd trouble... or bad script. | New poll | | Thread closed |
Add to favorites | Next newer thread | Next older thread |
User | Post | ||
1098 Newcomer Since: 03-12-06 From: Right here. Last post: 6633 days Last view: 6633 days |
| ||
#org 0x6B0B00
checkflag 0x069 if 0 0x6B0B50 message 0x6B0C00 boxset 0x4 end #org 0x6B0B50 setflag 0x069 setflag 0x800 message 0x6B0C20 boxset 0x4 givepokemon 0x18B 0x05 0xD8 end #org 0x6B0C20 = Use this wisely. #org 0x6B0C00 = Leave now. When I compile this into my Ruby.gba rom, everything works perfect, except when I assign the offset to somebody, and I go to test it, the screen freezes. Nothing moves. Also, is it supposed to show up in a hex editor? 'cause when I go to the offset, nothing's there... What am I doing wrong? In ScriptEd, I open up bagon5.rbc, hit -compile- and select Ruby.gba. rkclog says it works, but when I go to play, it does not... Is there something wrong with my script? |
|||
Maple Bronto Burt Since: 11-18-05 From: Bronx, New York Last post: 6326 days Last view: 6295 days |
| ||
The problem with your script is that the givepokemon command is not long enough, you have to add extra #raw 00's, for example...
#org 0x6B0B00 checkflag 0x069 if 0 0x6B0B50 message 0x6B0C00 boxset 0x4 end #org 0x6B0B50 setflag 0x069 setflag 0x800 message 0x6B0C20 boxset 0x4 givepokemon 0x18B 0x05 0xD8 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 end #org 0x6B0C20 = Use this wisely. #org 0x6B0C00 = Leave now. That should fix your script up. |
|||
1098 Newcomer Since: 03-12-06 From: Right here. Last post: 6633 days Last view: 6633 days |
| ||
Thank you very much; I'll test that now.
What do the raw binary bytes do, anyway? -edits- Still not working... any other suggestions? (edited by Jonny Buuz on 03-16-06 07:55 PM) |
|||
Darkdata 980 Since: 02-25-06 From: Newfoundland Last post: 6295 days Last view: 6295 days |
| ||
#autobank on #org 0x6B8080 lock faceplayer checkflag 0x01 if 0x1 jump 0x6B8180 checkflag 0x02 if 0x1 jump 0x6B8180 checkflag 0x03 if 0x1 jump 0x6B8180 message 0x6B8200 boxset 0x5 compare LASTRESULT 0x0 if 0x1 jump 0x6B8190 fanfare 0x172 setflag 0xB03 movesprite 0x1 0xff 0xff message 0x6B8240 boxset 0x6 setflag MENU_PARTY setflag 0x02 givepokemon PKMN_TOTODILE 0x5 0x0 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 release end #org 0x6B8180 message 0x6B8270 boxset 0x6 release end #org 0x6B8190 message 0x6B8300 boxset 0x6 release end #org 0x6B8200 = Do you want the WATER Pokémon,\nTOTODILE? #org 0x6B8240 = \v\h01\v\h05 recieved a TOTODILE! #org 0x6B8270 = Thats one of Prof. Elm's Pokémon. #org 0x6B8300 = Choose one of the three Pokémon. If you want edit that code for 3 pokemon for a table. Or you could use this one for #org 0x7B2B00 checkflag 0x10A if 0 0x7B0A54 message 0x7B2C00 boxset 0x2 end #org 0x7B0A54 setflag 0x10A setflag 0x800 checkgender compare LASTRESULT 1 if 0 0x7B1D54 if 1 0x7B0D54 end #org 0x7B1D54 message 0x7B1A54 boxset 0x02 givepokemon 0x9B 0x05 0x00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 end #org 0x7B0D54 message 0x7B1B54 boxset 0x02 givepokemon 0x98 0x05 0x00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 end #org 0x7B1A54 = Hello sir, here's a Cyndaquil! #org 0x7B1B54 = Hello miss, here's a Chikorita! #org 0x7B2C00 = How's that Pokémon doing? a gender type script.. |
|||
Maple Bronto Burt Since: 11-18-05 From: Bronx, New York Last post: 6326 days Last view: 6295 days |
| ||
If you mean #raw commands in general, the Rubikon reference that comes with Elitemap can explain that much better than I can.
I think the #raw 00's after the givepokemon command in this script are just filler space that may be used for something in special givepokemon scripts, but I'm not entirely sure on that. EDIT: '----------------------- #org 0x6B0B00 faceplayer lock checkflag 0x069 if 0x0 jump 0x6B0B50 message 0x6B0C00 boxset 0x4 release end '----------------------- #org 0x6B0B50 setflag 0x069 'sets a flag so you dont get unlimited Pokemon setflag 0x800 'sets Party Pokemon flag, notable that in Emerald this flag is 0x860 message 0x6B0C20 boxset 0x4 givepokemon 0x18B 0x05 0xD8 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 #raw 00 end '--------- ' Strings '--------- #org 0x6B0C20 = Use this wisely. #org 0x6B0C00 = Leave now. It works properly on Emerald. (edited by Maple on 03-16-06 08:32 PM) (edited by Maple on 03-17-06 03:59 PM) |
|||
1122 Newcomer Since: 03-17-06 Last post: 6626 days Last view: 6626 days |
| ||
Originally posted by Darkdata I don understood how to use this script. Should i give the starting offset the proffesor or a new trigger? Please explain I really need starting like GS with prof. elm etc... |
|||
1098 Newcomer Since: 03-12-06 From: Right here. Last post: 6633 days Last view: 6633 days |
| ||
None of these work; I know it's probably difficult to help me from here, but does anybody have any suggestions? Just something I can try; I really wanna put my script in.
Thank you. |
|||
KeiiChi Kun Leever Learn some manners. Password changed to gibberish and IP banned. Since: 01-01-06 From: Sushi Bar Last post: 6308 days Last view: 6308 days |
| ||
Waiting for someone to write a better script editor? |
Add to favorites | Next newer thread | Next older thread |
Acmlm's Board - I3 Archive - The Pit of Despair - ScriptEd trouble... or bad script. | | Thread closed |