Difference between revisions of "Save File Notes (Papyrus)"

2 bytes removed ,  02:27, 24 July 2017
m
Small grammar fixes
imported>Plplecuyer
 
imported>Mountrye
m (Small grammar fixes)
 
Line 12: Line 12:
==Scripts==
==Scripts==
===Adding to an Object===
===Adding to an Object===
If you add a script to an object in the save game after a save was made, that script will exist on the object when the save is loaded, but will be completely untouched (all of it's properties will be set to their masterfile values, and its OnInit block will be run as soon as the save finishes loading).
If you add a script to an object in the save game after a save was made, that script will exist on the object when the save is loaded, but will be completely untouched (all of its properties will be set to their masterfile values, and its OnInit block will be run as soon as the save finishes loading).


===Removing From an Object===
===Removing From an Object===
Line 19: Line 19:
==Properties and Script Variables==
==Properties and Script Variables==
===Adding===
===Adding===
*Variable with a default value: The variable will have it's default value when the save is loaded. (This is the "int myVar = 5" syntax)
*Variable with a default value: The variable will have its default value when the save is loaded. (This is the "int myVar = 5" syntax)
*Variable with no default value: The variable will have no value when the save is loaded (0, empty string, None, or false)
*Variable with no default value: The variable will have no value when the save is loaded (0, empty string, None, or false)
*Auto Property: The property will receive the value it was given in the master file, if any. (These are properties that end with the "auto" keyword, like so: "ObjectReference Property MyObject Auto"
*Auto Property: The property will receive the value it was given in the master file, if any. (These are properties that end with the "auto" keyword, like so: "ObjectReference Property MyObject Auto"
Anonymous user