Jump to content

[LE] Is there a way of detecting game exit in Skyrim?


dePog

Recommended Posts

Hi guys,

 

I want to add a "survival" feature to my Tiefling mod (similar to FO4) so that the game saves when you exit, then deletes the save game file after you next reload. Is this possible with any functions within Skyrim Creation Kit or SKSE?

 

Thanks.

dePog

Link to comment
Share on other sites

If exiting isn't possible, try to block the conventional methods of exiting and replacing them with your own. I've seen the save and load options greyed out so there might be a way to do it with quit. Although you wouldn't be able to prevent alt+f4. Maybe it's possible to rewire quit to execute a script instead.

Link to comment
Share on other sites

Probably the best way to approach this is modify the actionscript code for that menu. SkyUI already does this and you can see the code at the following:

 

https://github.com/schlangster/skyui/blob/master/src/PauseMenu/SystemPage.as

 

The problem is that you have to require the person using your changes to use the specific version of SkyUI you are modifying otherwise things might not work so well. And of course for people not using SkyUI there could be issues there as well.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...