Jump to content

[LE] How to store information over deaths and saves?


Recommended Posts

I am making a script that must store a value that increases every time the player dies. So when the player dies one time the value needs to be 1 and when the player has died 2 times the value will be 2 and so on. I made that work with a global variable BUT it resets back to 0 every time the player dies.... Any other ways to store a value over deaths and saves?

Link to comment
Share on other sites

"FileAccess Interface for Skyrim" here on the Nexus might be useful; I used it for a PoC mod ages back to do a kind of "ground-hog day" thing, saving the Player's Level/Skills/et cetera between Deaths; you could use that to write the global to a file when the Player dies, and then read back that Global via a maintenance Script when the game re-loads.

Link to comment
Share on other sites

Nope, but you can pass the Global to a Float on a Quest, and then pass that back to the Global :)

 

https://www.dropbox.com/s/3qu975sx4fzksle/Death%20Count%20Demo.rar?dl=0

 

GIve that a try, and see if it works for you. You'll need to have FISS installed, and enabled, then after that it should work. Nothing'll happen at first; then when you reload it will tell you how many times you've died at the top of the screen. Kill yourself, and when it reloads that number should increment by one.

Link to comment
Share on other sites

So I tested it out and when I installed it manually it worked fine but as soon as I installed it with Mod Organizer it only returned the value 1 all the time. Also when I removed the notification line in the two scripts it did not store the information in the file.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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