This plugin will get updated for the Next-Gen build when the version becomes stable and CommonLibF4 is updated accordingly. Until further, I will provide support for pre-Next-Gen versions (1.10.162.0 and 1.10.163.0).
Would this be the equivalent of the workshop NPC scripts to make a NPC act like a settler? Im mainly confused on the property flags, I'm not sure if they should be set to 2 so they are "global" so they aren't reset on each instance. Also, I'm not sure if the eventname is correct either, i just saw in the examples all of them are using onGameLoad.
The properties from this mod don't affect the ones in the game, they're separate. For this, use the vanilla function SetPropertyValueNoWait for non-constant ones.
As for the events, their documentation is here, but "OnGameLoad" seems correct.
And when calling BindPapyrusScript, or any other function, the scriptName has to match exactly the one from the function In this case, change "ObjectReference" to "Form".
Furthermore, attaching any NPC to the "WorkshopNPCScript" will work, but then most of the script will fail because the properties are all null.
I can try to modify BindPapyrusScript to allow to set the script's properties before its initialization, maybe via an additional parameter.
Maybe in the future. The plugin relies on CommonLibF4, which was not updated to the latest version of the game. Until then, updating won't be possible.
57 comments
Until further, I will provide support for pre-Next-Gen versions (1.10.162.0 and 1.10.163.0).
{
"properties": {
"bAllowMove": {
"type": "bool",
"flags": 2,
"value": false
},
"bCommandable": {
"type": "bool",
"flags": 2,
"value": false
},
"WorkshopParent": {
"flags": 0,
"type": "form",
"scriptName": "Form",
"pluginName": "Fallout4.esm",
"formID": "0x2058E"
}
},
"functions": [
{
"eventName": "OnGameLoad",
"scriptName": "PapyrusScriptRunner",
"functionName": "BindPapyrusScript",
"args": [
{
"type": "form",
"scriptName": "ObjectReference",
"pluginName": "DLCNukaWorld.esm",
"formID": "0x13A43"
},
{
"type": "string",
"value": "WorkshopNPCScript"
}
]
}
]
}
Would this be the equivalent of the workshop NPC scripts to make a NPC act like a settler? Im mainly confused on the property flags, I'm not sure if they should be set to 2 so they are "global" so they aren't reset on each instance.
Also, I'm not sure if the eventname is correct either, i just saw in the examples all of them are using onGameLoad.
For this, use the vanilla function SetPropertyValueNoWait for non-constant ones.
As for the events, their documentation is here, but "OnGameLoad" seems correct.
And when calling BindPapyrusScript, or any other function, the scriptName has to match exactly the one from the function
In this case, change "ObjectReference" to "Form".
Furthermore, attaching any NPC to the "WorkshopNPCScript" will work, but then most of the script will fail because the properties are all null.
I can try to modify BindPapyrusScript to allow to set the script's properties before its initialization, maybe via an additional parameter.
involved !
Author of the fork is also author of Baka mods (PapyrusExtender, Framework etc)
Is it impossible to translate Language.txt into other languages?
Sorry, I sent it to the wrong place.Until then, updating won't be possible.