N
nfitc1
Guest
OK, now I need to contribute here. 
Code: [Select]
This gets stored as a word value because the "LDA" command was issued via 12 which tells the STOR command to read it as a two-byte value.
Further, 0-2 are player characters (0 is top, 2 is bottom in the menu)
"actor" 3 doesn't really exist and shouldn't/can't be manipulated in this way.
4-9 are indeed enemies 0-5 as indicated in Proud Clod's formation menu. It's a little unsafe to refer to them this way, but so is referring to them by IDs in the case of multiple instances.
Other values can't be "MASK"ed by command 80 and are ignored.
Finally, 4020, 4023 and 4022 are, in no particular order (mostly because I'm still not sure which is which), "ATB running/can counter attack," "Targetable," and "Active". Only turning off Active will flag this as "defeated", but there are other reasons for turning off the others as well. Mostly camera related.
Flagbit is just the command for turn on bit X. OpCode 87 turns on bit pop0 of a 32 bit value. Since the last push was the value 4, that's the byte that's turned on:I forgot to say about the bit thing. For Jenova BIRTH's AI, she puts Flagbit 0, 1, and 2 into three separate variables and these have her attack each separate party member during a 'wave' of laser or w-laser. Later, I saw something in another AI where it targeted other enemies using bit 3, 4, etc. My hunch is that from 3 onwards it's enemies, problem is there can be 6 enemies on the field which is one too many for a byte.
Code: [Select]
Code:
00000000 00000000 00000000 00010000
Further, 0-2 are player characters (0 is top, 2 is bottom in the menu)
"actor" 3 doesn't really exist and shouldn't/can't be manipulated in this way.
4-9 are indeed enemies 0-5 as indicated in Proud Clod's formation menu. It's a little unsafe to refer to them this way, but so is referring to them by IDs in the case of multiple instances.
Other values can't be "MASK"ed by command 80 and are ignored.
Finally, 4020, 4023 and 4022 are, in no particular order (mostly because I'm still not sure which is which), "ATB running/can counter attack," "Targetable," and "Active". Only turning off Active will flag this as "defeated", but there are other reasons for turning off the others as well. Mostly camera related.