SetNthEffectItemMagnitude ?

Post » Sun Aug 09, 2009 7:03 am

Does this effect only work temporary? It seems that my script works, but when I save my game, exit and then come back, the spells are reset to default.

Will I need to run the code once at the beginning of each game to reset the magnitude to what I want?
User avatar
Rhysa Hughes
 
Posts: 3438
Joined: Thu Nov 23, 2006 3:00 pm

Post » Sun Aug 09, 2009 1:35 pm

That's because on game load, the engine reads from the active mods. Any changes you may have made in your previous game session would therefore get overwritten.
User avatar
Sun of Sammy
 
Posts: 3442
Joined: Mon Oct 22, 2007 3:38 pm

Post » Sun Aug 09, 2009 6:09 am

That's because on game load, the engine reads from the active mods. Any changes you may have made in your previous game session would therefore get overwritten.

Ok so I'll have to figure out a way to run the spell update code once each time I start the mod.
User avatar
xx_Jess_xx
 
Posts: 3371
Joined: Thu Nov 30, 2006 12:01 pm

Post » Sun Aug 09, 2009 2:58 am

Use a getGameLoaded block in your script(s) to do the initialization.
User avatar
Aaron Clark
 
Posts: 3439
Joined: Fri Oct 26, 2007 2:23 pm


Return to IV - Oblivion