Magicockerel Posted October 9, 2016 Share Posted October 9, 2016 One of the features of my mod, Workbench Control Panel, allows the user to disable settlement attacks under a variety of conditions. Trouble is, I have no clue how I can test whether the feature works as intended. That is, other than to rely on user experiences (over sufficient play time), which aren't always the most reliable thing. The source code of the feature (and the rest of the mod) can be found on the mod page (linked above) in the miscellaneous section. The basic idea behind it is to set the AllowAttacks variable (found in the WorkshopScript, and is a property of the WorkshopParent script) for a settlement to false when the condition is met, and to true when the condition is not met. From my testing, the mod successfully changes this variable for each settlement, and some settlements even have this variable set to false by default (for instance The Castle, however, that might be changed to true after triggered by an event in a quest or something). Looking at the CheckForAttacks() function in the WorkshopScript, this feature should work. However, as I have no way to simulate the process, I don't know how to confirm that the feature actually works. Does anyone have any idea how I could test this? I'm well aware that I could edit the CheckForAttacks() function itself in the WorkshopScript and almost not need to confirm the result, but I'm against editing vanilla assets (I also imagine that several mods such as the UFO4P already edit this script, which would each require a compatibility patch). Link to comment Share on other sites More sharing options...
Recommended Posts