Danny0317
Fluorite's back, brah
- 1,067
- Posts
- 11
- Years
- Age 25
- Seen Nov 19, 2023
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. :)
Instead of doing that, how about putting that (by "that" I mean what he said about @call) in a level script so every script in the map has it and you don't have to add it to NPCs? I haven't tested it, and won't since I don't hack FR or Ruby, but would that work?