Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in ROM Hacking. |
Acmlm's Board - I3 Archive - ROM Hacking - A ScriptED tutorial (Edited from Kawa's) | New poll | | |
Add to favorites | Next newer thread | Next older thread |
User | Post | ||
Darkdata 980 Since: 02-25-06 From: Newfoundland Last post: 6282 days Last view: 6282 days |
| ||
So here is a simple(er) tutorial on scripting.
The Attached file is a version that looks tons better. But for peoples sake I will paste it here too. Credit goes to Kawa for the html and the orignal tutorial. It's not the best but hopefully it will help. sdfgdafgdagf Where is the attachment! ~Sigh~ *Darkdata opens ftp and uploads the html. The Tutorial in nice neat html. With color! A Simple ScriptED Tutorial This tutorial assumes you're using an American Advance Generation ROM. First, use your favorite hex editor to find some free space in your ROM. Enter the following code in Scripted. #org 0xoffset A message 0xoffset B boxset 0x02 end #org 0xoffset B = Hello World! Now to break down the script so you can understand..... #org 0x(offset a) This is the offset for the compiler to write to. You would want to search through the rom and find some blank space. An example for Pokèmon Ruby would be 0x800000. messege 0x(offset b) This is the pointer to the text messege. boxset 0x0[x] "Calls a standard function. Mostly used to display dialogue with parameters 0x04 and 0x06 or yes/no questions with 0x05." end Ends the script. #org 0x(offset b) This is the offset for the compiler to write your text to. This is also what the pointer above points to, understand? You would want to search through the rom and find some blank space. An example for Pokèmon Ruby would be 0x800100. = Hello World! This is the text. it can be almost anything you want [following the charset that the game comes with] \n is for a new line. \p is for a new wordbox. So you have your script with the correct offsets, it is time to insert it. For reasons that have been reported many times by the N.E.W.B.S. we advise you to move your rom with ScriptED and Elite Map and rename it to something with no spaces. Ex rubyrom.gba. Paste your script in ScriptED hit compile and done! =) Now open advance map and select the npc of your choice to test the script. I think the fat guy in Pokèmon Ruby will be our target, though you can pick almost any npc you want. The Fatguy's script is $14D6CD so open advance map and go to the events tab. From there replace the offset of that npc to an offset that you used for the script (I.E. $800000). Then test it. [Remember to save ] So you made your first script, now it's time for you to learn on you own. Use the command reference with Elite Map and try your best to program your own script. Well I hope this helps I will answer any non stupid...questions you have. (edited by Darkdata on 09-03-06 03:18 PM) |
Add to favorites | Next newer thread | Next older thread |
Acmlm's Board - I3 Archive - ROM Hacking - A ScriptED tutorial (Edited from Kawa's) | | |