Skip to Content
The Alchemy Project

struct BATTLE_EFFECT_PARM

The command shared by an effect's caller, dispatcher and handlers.

Declared in battle_effect_params.h.

Fields

NameDescription
Sint32kindhandler table index; a critical hit adds EFFECT_ID_CRITICAL_OFFSET
Sint32sideBATTLE_EFFECT_SIDE
Sint32userthe user's unit id
Sint32firstTargetthe action's first target, standing or not
Sint32rangeforwarded action range, otherwise initialized to 1
Sint32targetCountentries in targets, at least 1
Sint32variantthe ability's size, from 0 (Quake, then Earthquake)
Sint32prelude1 plays a prelude: in some effects a Djinni appears
Sint32unusedno code names it
Sint16targets [8]the targets' unit ids, count of them

Description

The command shared by an effect's caller, dispatcher and handlers.

struct BATTLE_EFFECT_PARM

Referenced by btEffectReadKeysForEnemyTarget(), btEffectRunAcidBite(), btEffectRunAcidBlessing(), btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunBacteriaRush(), btEffectRunBansheeHowl(), btEffectRunBearClaw(), btEffectRunBerserk(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBlast(), btEffectRunBlizzard(), btEffectRunBolt(), btEffectRunBoneCharge(), btEffectRunBoneChiller(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBruteForce(), btEffectRunBurstShower(), btEffectRunByIdRange(), btEffectRunCannibalFang(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCrazyVoice(), btEffectRunCriticalHit(), btEffectRunCure(), btEffectRunCurePoison(), btEffectRunCurse(), btEffectRunCuttingEdge(), btEffectRunCybele(), btEffectRunDarkBlessing(), btEffectRunDeadlyGas(), btEffectRunDeathPlunge(), btEffectRunDecompose(), btEffectRunDelude(), btEffectRunDemonFire(), btEffectRunDemonNight(), btEffectRunDew(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunDoubleFang(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunDragonDriver(), btEffectRunDragonFire(), btEffectRunDrain() and 147 more.

Definition at line 24 of file battle_effect_params.h.

Fields in detail

kind

Sint32 kind

handler table index; a critical hit adds EFFECT_ID_CRITICAL_OFFSET

side

Sint32 side

BATTLE_EFFECT_SIDE

user

Sint32 user

the user's unit id

firstTarget

Sint32 firstTarget

the action's first target, standing or not

range

Sint32 range

forwarded action range, otherwise initialized to 1

targetCount

Sint32 targetCount

entries in targets, at least 1

variant

Sint32 variant

the ability's size, from 0 (Quake, then Earthquake)

prelude

Sint32 prelude

1 plays a prelude: in some effects a Djinni appears

unused

Sint32 unused

no code names it

targets

Sint16 targets[8]

the targets' unit ids, count of them