morogoth35 Posted June 23, 2017 Share Posted June 23, 2017 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 More sharing options...
morogoth35 Posted June 29, 2017 Author Share Posted June 29, 2017 bump Link to comment Share on other sites More sharing options...
Chrissiearto Posted June 29, 2017 Share Posted June 29, 2017 "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 More sharing options...
morogoth35 Posted June 30, 2017 Author Share Posted June 30, 2017 (edited) I used FISS and I could not get it to work. Whenever I died it only stored the value 1 and nothing else. Also FISS has no way to store a global variable. Edited June 30, 2017 by morogoth35 Link to comment Share on other sites More sharing options...
Chrissiearto Posted June 30, 2017 Share Posted June 30, 2017 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 More sharing options...
morogoth35 Posted July 1, 2017 Author Share Posted July 1, 2017 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 More sharing options...
Recommended Posts