Skip to Content
The Alchemy Project

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

NameDescription
Uint8unitIdThe acting unit.
Sint8targetCountTargets in targetIds.
Uint8targetIds [BATTLE_TARGET_CAPACITY]In battlefield order.
Sint8targetOffset [BATTLE_TARGET_CAPACITY]Each target's place relative to the aimed one: negative to one side.
Sint8targetMultiplier [BATTLE_TARGET_CAPACITY]The damage multiplier: 0 a miss, 1 a blow, 2 or 3 a double or triple.
Sint8targetCritical [BATTLE_TARGET_CAPACITY]BATTLE_CRITICAL.
Sint8targetHit [BATTLE_TARGET_CAPACITY]1, 0 or HIT_NOT_ROLLED.
Sint16commandBATTLE_COMMAND.
Uint8padding [2]Up to the word abilityId
Sint32abilityIdstarts on.
Sint32elementELEMENT.
Sint32stagingBATTLE_STAGING: how the action is shown.
Uint32battleEffectThe 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
Sint32failureBATTLE_ACTION_FAILURE.
Uint32hauntDamageThe 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]

BATTLE_CRITICAL.

targetHit

Sint8 targetHit[BATTLE_TARGET_CAPACITY]

1, 0 or HIT_NOT_ROLLED.

command

Sint16 command

BATTLE_COMMAND.

padding

Uint8 padding[2]

Up to the word abilityId

abilityId

Sint32 abilityId

starts on.

element

Sint32 element

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

BATTLE_ACTION_FAILURE.

hauntDamage

Uint32 hauntDamage

The damage the evil spirit deals a haunted unit at the end of its action.