Spawn a character in the live game
dos2_live_spawnCreates a new character on the loaded level in the running game at world coordinates or beside another character, returning its GUID and state for live Game Master control.
Instructions
Creates a new character on the level loaded in the running game, at a point or next to another character. Each call adds one more character, so repeating it makes duplicates; take one away with dos2_live_stage.
From a GM template only the model, level, alignment and name are used: its stat edits, skills and items are NOT
applied this way (placing it from the game's "Creatures and Items" panel applies them). During the Game Master
pause the character is created at once but moves into place only after unpausing: the result then has
applies_on_unpause=true and its position still reads 0, 0, 0. Needs the bridge (see dos2_live_status). Returns
the new character's GUID and state.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"template": "<template>"
},
"name": "dos2_live_spawn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | World X coordinate in metres. Give all of x, y, z, or use near instead. | |
| y | No | World Y (height) coordinate in metres. Give all of x, y, z, or use near instead. | |
| z | No | World Z coordinate in metres. Give all of x, y, z, or use near instead. | |
| dx | No | Offset in metres along X from the near character (default 1.5). Ignored without near. | |
| dz | No | Offset in metres along Z from the near character (default 0). Ignored without near. | |
| name | No | Name shown above the head. Defaults to the GM template's name. | |
| near | No | Place relative to this character (GUID or name) instead of giving x, y, z. | |
| level | No | Character level. Defaults to the GM template's level. | |
| campaign | No | Campaign that holds the GM template named in template. Not needed for a root template GUID. | |
| template | Yes | Root template GUID, or the name of a saved GM NPC template (then campaign is required). | |
| alignment | No | "Neutral NPC", "Evil NPC" (hostile) or "Good NPC" (ally). Defaults to the GM template's. |