Pokemonguy1990
Pokemon Shoto Saga Creator
- 45
- Posts
- 14
- Years
- Age 35
- Chicago, Illinois
- Seen Jan 31, 2012
Close, but no cigar, keep reading the document, and you'll see 2 more commands that specifically remove a script, automatically figuring the space it takes.
You see, the #erase command can be dangerous, because if you erase something at the wrong place, or if you erase too many bytes, you can potentially ruin other stuff in the ROM.
No, I'm speaking of the #remove, and #removeall commands.
#remove 0xOffset removes the main portion of the script at the offset, but leaves the text, movements, mart data it contains (If it contains any), braille (If any) and other things behind, for future use.
#removeall 0xOffset erases the WHOLE thing, text data, movement data, everything that script pointed to.
For instance, if you were to use the fat guy in Pallet tow's offset for the #remove command, his speech about technology will still exist in the ROM, but the rest of the script is gone, but if you use #removeall instead, that speech is gone, and freespace is left over.
Though if you want to erase images, ASM, and other NON-SCRIPT crap, #erase is your best friend.
Thank you very much. So if i use the #removeall, or #erase, FSF will find these offsets again if it's within the size of bytes i need/ specify?