set_area_scripts
Assigns event scripts (OnEnter, OnExit, OnHeartbeat, OnUserDefined) to a Neverwinter Nights area's ARE file; pass an empty string to clear a script.
Instructions
Set event scripts on an area's ARE file. Pass empty string to clear a script.
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_scripts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | Area resref | |
| onExit | No | OnExit script resref | |
| onEnter | No | OnEnter script resref | |
| onHeartbeat | No | OnHeartbeat script resref | |
| onUserDefined | No | OnUserDefined script resref |