Edit scene name, atmosphere, music
dos2_scene_settingsEdits one GM scene's name, folder, atmosphere, ambient sound, and music in GMScenes.lsf with backup; only supplied fields change, and empty strings reset defaults.
Instructions
Changes the settings of one scene in GMScenes.lsf: its name, folder, atmosphere (lighting and weather), ambient sound and music. Only the fields you pass change; an empty string resets that field to the level's default.
It does not change what is placed in the scene: characters and items are placed in the game or with the
dos2_live_* tools. The previous file is backed up first; undo with dos2_restore. Fails with an error while the game process is running unless allow_running=true.
Returns the backup id and the scene entry as it now reads.
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": {
"campaign": "<campaign>",
"scene": "<scene>"
},
"name": "dos2_scene_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New scene name. Omit to keep. | |
| music | No | Music track name (GM_*). Empty string restores the level default. | |
| scene | Yes | Scene name or scene ID, as listed by dos2_campaign. | |
| folder | No | Folder the scene is filed under in the GM's scene list. Omit to keep. | |
| ambient | No | Ambient sound name (Soundvol_*). Empty string restores the level default. | |
| campaign | Yes | The campaign to work on: its name, its folder name, its UUID, or a unique part of any of them. dos2_status lists the campaigns. | |
| atmosphere | No | Atmosphere GUID (one of the game's ATM_* atmospheres). Empty string restores the level default. | |
| allow_running | No | Keep false. Set true only after the user has confirmed that the running game sits in the main menu: a write into a campaign that is loaded in the game gets lost or damages it. |