Skip to content

Enums

The global ENUM table — string->integer constants scripts use to avoid magic numbers. Each field below is a named group; the runtime value is a Lua table whose keys are the constant names.

HealLevel

Outcome categories for the heal action: plain heal / resurrect / overheal.

HealPower

Persistence of healing effects: one-battle vs permanent.

SpellCastProblem

Error codes returned from spell-cast validation.

AimType

Targeting modes a spell can require: none, creature, obstacle, location.

BonusDuration

Lifetime selectors used by Bonus / BonusDescriptor duration.

BonusSource

Origin classes used by Bonus / BonusDescriptor sourceType.

BonusValueType

Combination rules used by Bonus / BonusDescriptor valueType.

ObstacleType

Obstacle categories used by SpellObstacleDescriptor obstacleType.

WallPart

Town-wall sections referenced by siege APIs and catapultAttack.

BattleSide

Battlefield side identifiers: none / attacker / defender.