scene_set_faction_hostility
Sets which factions attack each other in a copied save, fixing creatures that attack scenery or ignore intended targets; writes a new .gil without touching the official save.
Instructions
Set which factions fight each other, in a copy of a save. hostilePairs is the complete list of pairs that are hostile, e.g. [[1,3]] for "players and creatures fight, objects are left alone by everyone"; every pair not listed becomes friendly (友善), so neither side attacks the other. Use it when creatures attack things they should ignore (display objects, walls, scenery created at run time) or ignore things they should attack. Writes a new .gil in the workspace and returns its path; the official save is not touched.
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": {
"hostilePairs": "<hostilePairs>"
},
"name": "scene_set_faction_hostility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapPath | No | ||
| outputName | No | ||
| hostilePairs | Yes |