Skip to Content
The Alchemy Project

struct BATTLE_ACTION_RECORD

A unit's chosen action for the turn: its command, the command's parameter, its target and range, and its priority in the turn order. More…

Declared in battle_action.h.

Fields

NameDescription
Sint16unitId
Uint16slotin a link battle, unitId as the opponent knows it
Uint16priorityits place in the turn order
Sint16commandBATTLE_COMMAND
Sint16paramthe command's ability, item or Djinni
Sint16targetthe aimed unit's id
Sint16rangethe action's range
Sint16turnActionwhich of the unit's actions this turn, from 0

Description

A unit's chosen action for the turn: its command, the command's parameter, its target and range, and its priority in the turn order. Poseidon's and the Doom Dragon's forms choose each turn action by turnAction (btAIChooseAction).

struct BATTLE_ACTION_RECORD

Referenced by btAbilityReplaceDefeated(), btActionOrderSort(), btActionRunBuild(), btActionSwap(), btAIChooseAction(), btAppendLinkedActions(), btAutoBattleBuildActions(), btAutoBattleRunAction(), btAutoBattleRunApproachAttack(), btAutoBattleRunAttackOrItem(), btAutoBattleRunPsynergy(), btBuildEnemyActions(), btBuildUnitActions(), btFleePlayRun(), btGatherActions(), btStagingDispatchAction(), btStagingRunItem() and mnBattlePartySplitChoosers().

Definition at line 86 of file battle_action.h.

Fields in detail

unitId

Sint16 unitId

slot

Uint16 slot

in a link battle, unitId as the opponent knows it

priority

Uint16 priority

its place in the turn order

command

Sint16 command

BATTLE_COMMAND

param

Sint16 param

the command's ability, item or Djinni

target

Sint16 target

the aimed unit's id

range

Sint16 range

the action's range

turnAction

Sint16 turnAction

which of the unit's actions this turn, from 0