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
| Name | Description | |
|---|---|---|
Sint16 | unitId | |
Uint16 | slot | in a link battle, unitId as the opponent knows it |
Sint16 | priority | from the unit's Agility; higher acts first |
Sint16 | command | BATTLE_COMMAND |
Sint16 | param | an ability id, or COMMAND_ITEM's inventory index (-1 gone) |
Sint16 | target | the aimed unit's id |
Sint16 | range | the action's range |
Sint16 | unused | no 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
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