Check something at the start of each savegame.

Post » Tue Feb 15, 2011 5:49 pm

Long time ago I wanted to do this, but nobody seemed able to quite grasp a good non-FOSE way to do it. I wanted to be able to know if the player had freshly loaded a savegame.

So now I see this in the GECK WIKI about Global variables.

Globals
From GECK

Link to TES4 Construction Set Wiki: Globals

In addition, a new checkbox is added for the GECK: "Constant". Checking this box will make changes to this value not persist through game saves. If the global is to be used as a hidden mod setting value, this checkbox must be un-checked.


If that description is right (its a little convoluted tbh), that right there would be able to pass you intelligence as to if this is a fresh load of the gamestate. You'd make your mod create a global variable, check the box, and set that value thingie to 1. Then, you'd run a quest script or something which would, if it ever sees that value as 1, it sets it to 0 and at that moment in time presumes that the game has been reloaded.

Now that I know this, I might run off and use it. haha.
User avatar
(G-yen)
 
Posts: 3385
Joined: Thu Oct 11, 2007 11:10 pm

Post » Tue Feb 15, 2011 2:19 pm

Thanks for that.. I'd seen that checkbox and was wondering about it not more than 2 days ago.
User avatar
Jade Barnes-Mackey
 
Posts: 3418
Joined: Thu Jul 13, 2006 7:29 am


Return to Fallout 3