Is there a function in CK to restrict 'Save' ?

Post » Sun Oct 18, 2015 8:56 am

Hey guys,

Question 1. In my http://www.nexusmods.com/skyrim/mods/68077/? mod I want to restrict the ability to 'save game'. My hope is that the game will autosave once per game day and be unavailable for the rest of the day. Basically, has anybody got an idea how I turn off the save function unless certain criteria are met. The http://www.nexusmods.com/skyrim/mods/49816/? mod already does this so I know its possible. I tried to look at its scripts but they were 'greyed out' in CK so I couldn't see how that mod did it.

Question 2. I would also like to keep track of player deaths so that you know how many times you have died on this Skyrim play through. If I use the OnDying function would I script something like:

GlobalVariable Property DeathsGlobal Auto

Event OnDying(Game.GetPlayer())
DeathsGlobal == DeathsGlobal +1
debug.notification("You have died " +DeathsGlobal +" times")
endEvent

Would I attach this script to a Quest, or .......... ?

Any suggestions would be appreciated.

Cheers,

dePog

User avatar
mimi_lys
 
Posts: 3514
Joined: Mon Apr 09, 2007 11:17 am

Post » Sun Oct 18, 2015 5:11 am

For saving, try : Game.SetInCharGen(True, False, False)

According to the Wiki, that should stop Saving like at the start of the game.

User avatar
Guinevere Wood
 
Posts: 3368
Joined: Mon Dec 04, 2006 3:06 pm


Return to V - Skyrim