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
| Name | Type | Meaning |
|---|---|---|
amount | PositiveHitPoints | Positive health restored, in whole hit points. Range: 1…2147483647; Unit: hp |
beam | FxId | Look 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 |
caster | ActorRef | Healer 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 |
look | FxId | Look 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_mm | PositiveDistance | Also heals every living body allied to the caster within this radius of the target; requires caster. Range: 1…2147483647; Unit: mm |
target | ActorRef | Actor instance selected by the item-use target contract. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"amount": 18,
"kind": "heal",
"target": "a1"
}