Background for Skyrim SE
Member of the DbMiscFunctions script
voidfunctionWriteJsonSaveAndLoadFunctionsToFile(stringSourceFilePath, stringDestinationFilePath="", boolGlobalVariablesToggle=true, boolFloatsToggle=true, boolStringsToggle=true, boolIntsToggle=true, boolBoolsToggle=true, boolGlobalVariableArraysToggle=true, boolFloatArraysToggle=true, boolStringArraysToggle=true, boolIntArraysToggle=true, boolBoolArraysToggle=true, intMessages=0, stringConfirmMessage="one Writing Json Functions", boolUsePropertiesAsDefaults=true)Global

Description

Documentation Comment

Search the SournceFilePath for String / Int / Float / Global variables, if their toggles are enabled, (outside of any events or functions)
and write Json Save and Load functions to DestinationFilePath for said variables.
If DestinationFilePath == "" it will write the functions to the SourceFilePath.
Set Messages int to 0 to display ConfirmMessage notification when finished, set to 1 to display messagebox.
requires skse and PapyrusUtil


Parameters

  1. stringSourceFilePath

  2. stringDestinationFilePath=""

  3. boolGlobalVariablesToggle=true

  4. boolFloatsToggle=true

  5. boolStringsToggle=true

  6. boolIntsToggle=true

  7. boolBoolsToggle=true

  8. boolGlobalVariableArraysToggle=true

  9. boolFloatArraysToggle=true

  10. boolStringArraysToggle=true

  11. boolIntArraysToggle=true

  12. boolBoolArraysToggle=true

  13. intMessages=0

  14. stringConfirmMessage="one Writing Json Functions"

  15. boolUsePropertiesAsDefaults=true


Examples

Auto-Generated Example

string myString__SourceFilePath
string myString__DestinationFilePath
bool myBool__GlobalVariablesToggle
bool myBool__FloatsToggle
bool myBool__StringsToggle
bool myBool__IntsToggle
bool myBool__BoolsToggle
bool myBool__GlobalVariableArraysToggle
bool myBool__FloatArraysToggle
bool myBool__StringArraysToggle
bool myBool__IntArraysToggle
bool myBool__BoolArraysToggle
int myInt__Messages
string myString__ConfirmMessage
bool myBool__UsePropertiesAsDefaults

DbMiscFunctions.WriteJsonSaveAndLoadFunctionsToFile(myString__SourceFilePath, myString__DestinationFilePath, myBool__GlobalVariablesToggle, myBool__FloatsToggle, myBool__StringsToggle, myBool__IntsToggle, myBool__BoolsToggle, myBool__GlobalVariableArraysToggle, myBool__FloatArraysToggle, myBool__StringArraysToggle, myBool__IntArraysToggle, myBool__BoolArraysToggle, myInt__Messages, myString__ConfirmMessage, myBool__UsePropertiesAsDefaults)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.