set_area_properties
Change a Neverwinter Nights area's lighting, fog, music, ambient sounds, weather, skybox, and day/night cycle using its resref.
Instructions
Modify area properties: lighting, fog, music, ambient sounds, weather, skybox, day/night cycle. Music/ambient values are IDs from ambientmusic.2da / ambientsound.2da.
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": {
"area": "<area>"
},
"name": "set_area_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | Area resref | |
| skyBox | No | Skybox ID (0=none, 1=grass, etc.) | |
| isNight | No | Set area to nighttime | |
| musicDay | No | Day music ID (from ambientmusic.2da) | |
| windPower | No | Wind power (0=calm, 1=light, 2=strong) | |
| chanceRain | No | Rain chance % (0-100) | |
| chanceSnow | No | Snow chance % (0-100) | |
| musicNight | No | Night music ID | |
| fogClipDist | No | Fog clip distance (float) | |
| musicBattle | No | Battle music ID | |
| sunFogColor | No | Sun fog color (dword, RGB packed) | |
| moonFogColor | No | Moon fog color (dword, RGB packed) | |
| sunFogAmount | No | Sun fog amount (0-255) | |
| ambientSndDay | No | Day ambient sound ID (from ambientsound.2da) | |
| dayNightCycle | No | Enable day/night cycle | |
| moonFogAmount | No | Moon fog amount (0-255) | |
| ambientSndNight | No | Night ambient sound ID | |
| chanceLightning | No | Lightning chance % (0-100) | |
| sunAmbientColor | No | Sun ambient color (dword, RGB packed) | |
| sunDiffuseColor | No | Sun diffuse color (dword, RGB packed) | |
| ambientSndDayVol | No | Day ambient volume (0-100) | |
| moonAmbientColor | No | Moon ambient color (dword, RGB packed) | |
| moonDiffuseColor | No | Moon diffuse color (dword, RGB packed) | |
| ambientSndNightVol | No | Night ambient volume (0-100) |