Script (XSE) How to get byte from offset and buffer it?
Binary ROM HackingNeed a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.
So you can get a byte from an offset (a.k.a. farbyte) and store it in a script bank, and you can buffer a byte from a variable, but how do you transfer from a script bank to a variable? Tried googling, nothing came up.
Use the copybyte command and the direct addresses of the variables. The 0x8000 series variables are easy to directly access, while the 0x5000 series are dynamic.
Generally,
copybyte destination source
source for an 0x8000 var is going to be 0x20370B8 + (var - 0x8000)