stage_group
Moves a creature to another group. Groups decide who fights whom: 0 is the player’s, 1 the hostile one, 2 friendly, and the game keeps which pairs of groups are hostile.
With toward, it first sets whether group and the toward group are hostile. A spawned creature moved to group 2 fights the hostile creatures near it, which stages a fight without the party.
The answer includes the old group (was), the new group, and whether it is now hostileToParty and hostileToGroup1.
Arguments
| Name | Type | Required | What |
|---|---|---|---|
id | string | yes | The creature, by id (from creatures). |
group | integer | yes | The group to move it to, 0 to 255. |
toward | integer | Another group, whose hostility with group is set first. | |
hostile | boolean | With toward: whether the two groups are hostile. Default true. |
Call it as stage_group over MCP, or POST /api/tool/stage_group with the arguments as JSON.