Changes

Jump to navigation Jump to search

FF7/Battle/Battle Mechanics

142 bytes added, 00:56, 15 July 2019
no edit summary
== Queued Actions ==
When a command is selected either by a player character or an enemy the action gets queued in is inserted into a FIFO structure while there are actions queued or one is being performedpriority queue. Up to 64 actions can be queued.On each update loop, the main Queue function will pop off the next action with the lowest priority and execute it in FIFO order within priority bands.  Queue entries have the following structure in memory:
{| class="wikitable"
|-
| 0
| Command IndexAction Priority (limits/counters 0, player chosen spells 6)
|-
| 1
| Command's ActorQueue position within priority band
|-
| 2
| Priority (4 - ??; 3 - Auto commands (Added Cut, Poison, Death Sentence, etc); 2 - Normal; 1 - ??; 0 - Counters and Limit Breaks)Attacker actor ID
|-
| 3
| AI-related function parameterAction command index (e.g CMD_MAGIC = 0x02)
|-
| 4
| Target MaskAction attack index (e.g Bolt = 0x21). (This index is absolute, not command relative)
|-
| 6
| Action Indextarget mask
|}
|-
| 0ACh
| colspan="2" | Eight bytes (in at most three groups?)Limit Actions for current Limit Level
|-
| 0B4h
| colspan="2" | Limit Actions for current Limit Level|-| 0B8h| colspan="2" | Enabled Limit Data (three entries in Attack Data format(0x1C))
|-
| 108h

Navigation menu