do variables persist in savegames?

Post » Thu Jun 21, 2012 11:12 am

If I have a quest script with an array that is filled with junk to store information about the state of the player when the mod is first installed, will this array lose its values if the player saves, quits, and loads the game? If yes, how can o do this?
User avatar
carley moss
 
Posts: 3331
Joined: Tue Jun 20, 2006 5:05 pm

Post » Thu Jun 21, 2012 10:35 am

The values of variables are saved across game sessions.
User avatar
Niisha
 
Posts: 3393
Joined: Fri Sep 15, 2006 2:54 am

Post » Thu Jun 21, 2012 6:14 pm

http://www.creationkit.com/Actor_Value down at the list.
User avatar
Pete Schmitzer
 
Posts: 3387
Joined: Fri Sep 14, 2007 8:20 am

Post » Thu Jun 21, 2012 10:22 am

DreamKing is referring to Global Variables, and is correct. *Mofakin* is referring to actor values, and is also correct. However, this is not what the OP asked:

If I have a quest script with an array

The values stored in variables and properties in running papyrus scripts, including the contents of arrays, are persistent across savegames.
User avatar
April
 
Posts: 3479
Joined: Tue Jun 20, 2006 1:33 am

Post » Thu Jun 21, 2012 4:09 pm

Huh? I was referring to quest variables, just as the OP asked.
User avatar
Marcin Tomkow
 
Posts: 3399
Joined: Sun Aug 05, 2007 12:31 pm

Post » Thu Jun 21, 2012 12:14 pm

Ah, my mistake. My brain inserted the word "global" in your post for no reason.
User avatar
John Moore
 
Posts: 3294
Joined: Sun Jun 10, 2007 8:18 am

Post » Thu Jun 21, 2012 10:28 am

Good, so I can record skills, avs, perks, and spells in arrays when the mod is first loaded, remove all of them, then two years later down the road revert my character back to how he was when the mod first loaded.
User avatar
Jordan Moreno
 
Posts: 3462
Joined: Thu May 10, 2007 4:47 pm


Return to V - Skyrim