Fadingwhite Posted May 29, 2015 Share Posted May 29, 2015 Can someone give an example of how to save some numbers that can be reloaded back AFTER you've closed your game? i.e:Game load...if (saveExists == true){num1 = load("key1")num2 = load("key2")} else {num1 = 0num2 = 0}Player plays game... num1 and num2 change by some other events...Game entirely closed, on game close:...num1 = 123num2 = 321save(num1, "key1")save(num2, "key2")Next game load...num1 should be == 123num2 should be == 321etc... Link to comment https://forums.kleientertainment.com/forums/topic/54578-saving-custom-mod-data-for-your-worldssaveslots/ Share on other sites More sharing options...
Seiai Posted May 29, 2015 Share Posted May 29, 2015 @Fadingwhite, Just search for OnSave and OnLoad functions, the character wendy has them for instance. Link to comment https://forums.kleientertainment.com/forums/topic/54578-saving-custom-mod-data-for-your-worldssaveslots/#findComment-642116 Share on other sites More sharing options...
Blueberrys Posted May 29, 2015 Share Posted May 29, 2015 (edited) @Fadingwhite See this. Edit: And the relevant thread. Edited May 29, 2015 by Blueberrys Link to comment https://forums.kleientertainment.com/forums/topic/54578-saving-custom-mod-data-for-your-worldssaveslots/#findComment-642119 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now