Skip to Content
The Alchemy Project

struct BATTLE_ACTION

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

Declared in battle_action.h.

Fields

NameDescription
Sint16unitId
Uint16slotin a link battle, unitId as the opponent knows it
Sint16priorityfrom the unit's Agility; higher acts first
Sint16commandBATTLE_COMMAND
Sint16paraman ability id, or COMMAND_ITEM's inventory index (-1 gone)
Sint16targetthe aimed unit's id
Sint16rangethe action's range
Sint16unusedno code names it

Description

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

struct BATTLE_ACTION

Referenced by btAbilityReplaceDefeated(), btActionOrderSort(), btActionRunBuild(), btAIChooseAction(), btAppendLinkedActions(), btAutoBattleBuildActions(), btAutoBattleRunAction(), btAutoBattleRunApproachAttack(), btAutoBattleRunAttackOrItem(), btAutoBattleRunPsynergy(), btAutoBattleShowDefend(), btBuildEnemyActions(), btBuildPartyActions(), btFleePlayRun(), btGatherActions(), btStagingDispatchAction(), btStagingRunItem() and mnBattleCollectPartyCommands().

Definition at line 72 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

Sint16 priority

from the unit's Agility; higher acts first

command

Sint16 command

BATTLE_COMMAND

param

Sint16 param

an ability id, or COMMAND_ITEM's inventory index (-1 gone)

target

Sint16 target

the aimed unit's id

range

Sint16 range

the action's range

unused

Sint16 unused

no code names it