Users browsing this thread: 1 Guest(s)
Event Bits vs. Memory Address
12-01-2017, 11:38 PM
(12-01-2017, 07:24 PM)PowerPanda Wrote: I don't know if that's it. I searched all of Narshe, Figaro, and South Figaro for NPCs affected by Memory Address 1E89:0, and fond none. In fact, most of the Memory addresses for NPCs didn't seem to be covered by Novalia Spirit's document.
Take for example, the ghost at the entrance of Zozo that explains how to use Espers. He shows when Memory Address 1EF0:5 is set, which I believe is Event Bit $385 This is not covered in Novalia's document, and when I look at the event that sets it via ZoneDoctor (the only real event editor I have), it is set by hex D6-85, with the description of
"Set event bit $1E80($3..."
"Address: 1E90"
"Bit: 5"
Now, I know that ZoneDoctor is not to be trusted for anything. I'm just trying to figure out how to get from the hex or event bit number to the memory address.
There are a number of things that change with $1E89:0 mostly story events that have taken place are disabled, look for "If ($1E80($048) [$1E89, bit 0] is set)" in the event dump.
" $1EE0-$1F5F NPC Event Bits (to enable/disable NPC's, initialized for new game, all other event bits are cleared) "
- from https://www.ff6hacking.com/wiki/doku.php...:field_ram
Your example with the ghost in Zozo concerns NPC Event Bits that are used differently from regular/story event bits. NPC event bits will be different for each location so you need to look up the NPC list for each location you're working with.
NPC dump: http://www.angelfire.com/al2/imzogelmo/NPCDataTxt.txt
hex event bit number to memory address would calculate as such:
RAM Byte = 1E80h + (BITh / 8)
RAM Bit = BITh % 8
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)