View Single Post
  #4    
Old November 17th, 2012, 12:32 PM
itman
Back to ROM hacking. :D
 
Join Date: May 2007
Age: 20
Nature: Adamant
This is amazing, but it takes up so much room to use in EVERY script.

So what everyone should do is make that a separate script, and then at the beginning of every script, call it, so this way you can save lots of room.

Example:

Script to be called:
Spoiler:

#org @begin
writebytetooffset 0x3F 0x4000048
writebytetooffset 0x1F 0x4000049
writebytetooffset 0x41 0x4000050
writebytetooffset 0x3F 0x4000051
writebytetooffset 0xF 0x4000052
writebytetooffset 0xA 0x4000053
writebytetooffset 0xFF 0x202F0AA
writebytetooffset 0xFF 0x202F0AB
writebytetooffset 0x0 0x202F0B8
writebytetooffset 0x0 0x202F0B9
writebytetooffset 0x0 0x202F0AC
writebytetooffset 0x0 0x202F0AD
writebytetooffset 0x0 0x202F0BE
writebytetooffset 0x0 0x202F0BF
writebytetooffset 0x0 0x202F0C0
writebytetooffset 0x0 0x202F0C1
writebytetooffset 0x0 0x202F0C2
writebytetooffset 0x0 0x202F0C3
writebytetooffset 0x0 0x202F0C4
writebytetooffset 0x0 0x202F0C5
writebytetooffset 0x0 0x202F0C6
writebytetooffset 0x0 0x202F0C7
writebytetooffset 0x0 0x202F0C8
writebytetooffset 0x0 0x202F0C9
return


Then if a script wants to use transparent text boxes, it would just call that one, and then it will automatically return to the script afterward due to the return command.

Spoiler:

#org @begin
call 0x(whateveroffsetit'sat!)
lock
faceplayer
msgbox @hi 0x6
release
end

#org @hi
= Hi.


Space saving ftw! I know this isn't a complex technique in anyway; I was just over explaning for newer hackers out there. :)
Reply With Quote