stage_effect

Puts a condition on a creature, or removes effects from it, to set up a test.

  • apply: puts effect on the creature for seconds, as if from creator and ability when given.
  • remove: removes the creature’s effects that match effect, ability and creator. With none of them given, removes all its effects.

The answer includes the creature’s effects afterwards, the creature and a cursor. The effects are the engine’s plain ones, applied the way the game’s scripts apply them.

Arguments

Name Type Required What
action "apply" | "remove" yes apply to add a condition, remove to take effects off.
id string yes The creature, by id (from creatures).
effect any   The condition: stun, knockdown, paralyze, root, sleep, daze, slip, fear, confusion, grabbed, or any EFFECT_TYPE_* number. Required for apply.
seconds number   With apply: how long the effect lasts, in seconds, up to 600. Default 6.
creator string   The creature the effect comes from, by id. Default none.
ability integer   The ability the effect comes from, by id. Default none.

Call it as stage_effect over MCP, or POST /api/tool/stage_effect with the arguments as JSON.