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.

BonusLimitEffect

Kinds of combat a bonus is limited to, used by Bonus effectRange.

ObstacleType

Obstacle categories used by SpellObstacleDescriptor obstacleType.

WallPart

Town-wall sections referenced by siege APIs and catapultAttack.

BattleSide

Battlefield side identifiers: none / attacker / defender.

Difficulty

Game difficulty levels, named after chess pieces (pawn = easiest, king = hardest).

PrimarySkill

The four primary hero skills.

PlayerColor

Player colours, plus the neutral owner used by unowned objects.

PlayerStatus

Whether a player is still playing, has won, or has lost.