struct BATTLE_ACTION_RUN
One action, as btActionRunBuild lays it out for btAbilityApplyToTarget to apply target by target.
Declared in battle_action_run.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | unitId | The acting unit. |
Sint8 | targetCount | Targets in targetIds. |
Uint8 | targetIds [BATTLE_TARGET_CAPACITY] | In battlefield order. |
Sint8 | targetOffset [BATTLE_TARGET_CAPACITY] | Each target's place relative to the aimed one: negative to one side. |
Sint8 | targetMultiplier [BATTLE_TARGET_CAPACITY] | The damage multiplier: 0 a miss, 1 a blow, 2 or 3 a double or triple. |
Sint8 | targetCritical [BATTLE_TARGET_CAPACITY] | BATTLE_CRITICAL. |
Sint8 | targetHit [BATTLE_TARGET_CAPACITY] | 1, 0 or HIT_NOT_ROLLED. |
Sint16 | command | BATTLE_COMMAND. |
Uint8 | padding [2] | Up to the word abilityId |
Sint32 | abilityId | starts on. |
Sint32 | element | ELEMENT. |
Sint32 | staging | BATTLE_STAGING: how the action is shown. |
Uint32 | battleEffect | The effect word: how it is staged (STAGING_ in battle_internal.h). bits: 19 view reversed | 18 view across | 17 other side | 16 on downed | 15 large effect | 14 by id range | 13..12 variant | 11..0 effect kind |
Sint32 | failure | BATTLE_ACTION_FAILURE. |
Uint32 | hauntDamage | The damage the evil spirit deals a haunted unit at the end of its action. |
Description
One action, as btActionRunBuild lays it out for btAbilityApplyToTarget to
apply target by target.
struct BATTLE_ACTION_RUN
Referenced by btAbilityApplyToTarget(), btActionRunBuild(), btStagingBuildTargetList(), btStagingRunAttack(), btStagingRunFlee(), btStagingRunFullScreen(), btStagingRunItem(), btStagingRunMessages(), btStagingRunPlainAttack(), btStagingRunPsynergyCast() and btUnitProcessActionEnd().
Definition at line 41 of file battle_action_run.h.
Fields in detail
unitId
Uint8 unitId
The acting unit.
targetCount
Sint8 targetCount
Targets in targetIds.
targetIds
Uint8 targetIds[BATTLE_TARGET_CAPACITY]
In battlefield order.
targetOffset
Sint8 targetOffset[BATTLE_TARGET_CAPACITY]
Each target's place relative to the aimed one: negative to one side.
targetMultiplier
Sint8 targetMultiplier[BATTLE_TARGET_CAPACITY]
The damage multiplier: 0 a miss, 1 a blow, 2 or 3 a double or triple.
targetCritical
Sint8 targetCritical[BATTLE_TARGET_CAPACITY]
targetHit
Sint8 targetHit[BATTLE_TARGET_CAPACITY]
1, 0 or HIT_NOT_ROLLED.
command
Sint16 command
padding
Uint8 padding[2]
Up to the word abilityId
abilityId
Sint32 abilityId
starts on.
element
Sint32 element
staging
Sint32 staging
BATTLE_STAGING: how the
action is shown.
battleEffect
Uint32 battleEffect
The effect word: how it
is staged (STAGING_ in
battle_internal.h).
bits: 19 view reversed |
18 view across | 17
other side | 16 on
downed | 15 large effect
| 14 by id range |
13..12 variant | 11..0
effect kind
failure
Sint32 failure
hauntDamage
Uint32 hauntDamage
The damage the evil spirit deals a haunted unit at the end of its action.