Users browsing this thread: 9 Guest(s)
Pony Fantasy VI Remake
Event bits crash course:
A byte is 8 bits!
Event Bits: $1E80-$1EDF
NPC bits: $1EE0-$1F3F
You need to set the NPC bit in an event plus setting it on the NPC in order to make all NPC having that bit appearing:
Setting bit $1F02:3 for an NPC. You need to use command D8 in this case since it covers $1F00:0 to $1F1F:7 (32 bytes * 8 bits = 256 bits, byte 2 of command D8 has 256 possible values. It's not a coincidence). So $1F02 - $1F00 = 2 byte = 16 bits + 3 extra bits on your byte = 19 bits = $13. You command is D8 13. Once it is set in an event your NPC appears. No need to set it manually on a NPC data, FF6LE works great for that!
A byte is 8 bits!
Event Bits: $1E80-$1EDF
NPC bits: $1EE0-$1F3F
You need to set the NPC bit in an event plus setting it on the NPC in order to make all NPC having that bit appearing:
Code:
D0 : 2 : Set event bit $7E1E80 + A/8 (1st set)
D1 : 2 : Clear event bit $7E1E80 + A/8 (1st set)
D2 : 2 : Set event bit $7E1EA0 + A/8 (2nd set)
D3 : 2 : Clear event bit $7E1EA0 + A/8 (2nd set)
D4 : 2 : Set event bit $7E1EC0 + A/8 (3rd set)
D5 : 2 : Clear event bit $7E1EC0 + A/8 (3nd set)
D6 : 2 : Set event bit $7E1EE0 + A/8 (4th set)
D7 : 2 : Clear event bit $7E1EE0 + A/8 (4th set)
D8 : 2 : Set event bit $7E1F00 + A/8 (5th set)
D9 : 2 : Clear event bit $7E1F00 + A/8 (5th set)
DA : 2 : Set event bit $7E1F20 + A/8 (6th set)
DB : 2 : Clear event bit $7E1F20 + A/8 (6th set)
DC : 2 : Set event bit $7E1F40 + A/8 (7th set)
DD : 2 : Clear event bit $7E1F40 + A/8 (7th set)
Setting bit $1F02:3 for an NPC. You need to use command D8 in this case since it covers $1F00:0 to $1F1F:7 (32 bytes * 8 bits = 256 bits, byte 2 of command D8 has 256 possible values. It's not a coincidence). So $1F02 - $1F00 = 2 byte = 16 bits + 3 extra bits on your byte = 19 bits = $13. You command is D8 13. Once it is set in an event your NPC appears. No need to set it manually on a NPC data, FF6LE works great for that!
« Next Oldest | Next Newest »
Users browsing this thread: 9 Guest(s)