Anonymous

Changes

From Final Fantasy Inside

FF7/Battle/Battle Mechanics

142 bytes removed, 05:10, 23 May 2019
m
17 revisions imported
== Queued Actions ==
When a command is selected either by a player character or an enemy the action gets queued in a FIFO structure while there are actions queued or one is inserted into a priority queuebeing performed. 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
| Action Priority (limits/counters 0, player chosen spells 6)Command Index
|-
| 1
| Queue position within priority bandCommand's Actor
|-
| 2
| Attacker actor IDPriority (4 - ??; 3 - Auto commands (Added Cut, Poison, Death Sentence, etc); 2 - Normal; 1 - ??; 0 - Counters and Limit Breaks)
|-
| 3
| Action command index (e.g CMD_MAGIC = 0x02)AI-related function parameter
|-
| 4
| Action attack index (e.g Bolt = 0x21). (This index is absolute, not command relative)Target Mask
|-
| 6
| Action target maskIndex
|}
|-
| 0ACh
| colspan="2" | Eight bytes (in at most three groups?)
|-
| 0B4h
| colspan="2" | Limit Actions for current Limit Level
|-
| 0B4h0B8h| colspan="2" | Enabled Limit Data (three entries in Attack Data format(0x1C))
|-
| 108h