EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

heal

Restore positive HP to a living actor (with radius_mm also to the caster's allies around it), capped at max_health. Does not revive. With a caster it fails when it would restore nothing or the target is not the caster's ally.

Signature

{ amount: PositiveHitPoints, beam: (FxId)?, caster: (ActorRef)?, kind: "heal", look: (FxId)?, radius_mm: (PositiveDistance)?, target: ActorRef }

Fields

NameTypeMeaning
amountPositiveHitPointsPositive health restored, in whole hit points.
Range: 1…2147483647; Unit: hp
beamFxIdLook from the caster to every other body the heal restores health to: played at that body with the caster as its source, so from_source bolts leave the caster's hand; requires caster.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: fx
casterActorRefHealer whose spell power scales the amount and whose allies alone are healed (a healing spell); absent: the plain amount, any living target (a potion).
Length: 1…256; Pattern: ^[\s\S]+$
kind"heal"Discriminant
lookFxIdLook on every body the heal restores health to; its attached parts follow the body.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: fx
radius_mmPositiveDistanceAlso heals every living body allied to the caster within this radius of the target; requires caster.
Range: 1…2147483647; Unit: mm
targetActorRefActor instance selected by the item-use target contract.
Length: 1…256; Pattern: ^[\s\S]+$

Validated example

{
  "amount": 18,
  "kind": "heal",
  "target": "a1"
}