COMBAT
Modify stat
Changes a stat value (health, attack…). Heal, damage, buff or drain any statistic in a single action.
Use cases
Health potions, durability loss, hunger management, experience gains, stat buffs.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Mode | — | No | Restore, Increase, Decrease or Set. |
| Stat | — | No | Which stat to modify (vitality, hunger…). |
| Amount | — | No | How much to change — flat number or percentage. |
| Target | — | No | Defaults to the current actor. Use $event.target to damage a detected player or item. |
→ In-game result
{
"action": "ModifyStat",
"mode": "...",
"stat": "...",
"amount": "...",
"target": "..."
} In-game result
The value changes immediately, clamped within the min/max range defined on the stat.