Qiiiii Posted June 14, 2020 Share Posted June 14, 2020 I can TUNING.SPIDER_HEALTH = 110 in console to change spider health to 110 (default is 100). print(TUNING.SPIDER_HEALTH) shows that value is changed. But after game reload all values are set back to default. print(TUNING.SPIDER_HEALTH) shows 100. How can I save these values to current game? Link to comment https://forums.kleientertainment.com/forums/topic/119035-save-values-set-in-console/ Share on other sites More sharing options...
krylincy Posted June 15, 2020 Share Posted June 15, 2020 you need to write that in a (personal tuning) mod for your modmain.lua function custom_tuning() TUNING["SPIDER_HEALTH "] = 110 end AddGamePostInit(custom_tuning) AddSimPostInit(custom_tuning) I dont know which of the to add functions are right, I use both. Link to comment https://forums.kleientertainment.com/forums/topic/119035-save-values-set-in-console/#findComment-1343210 Share on other sites More sharing options...
penguin0616 Posted June 17, 2020 Share Posted June 17, 2020 (edited) @krylincy "AddGamePostInit" triggers when controllers are being loaded or unloaded. "AddSimPostInit" triggers when the world has loaded, and also provides a player argument. Edited June 17, 2020 by penguin0616 1 Link to comment https://forums.kleientertainment.com/forums/topic/119035-save-values-set-in-console/#findComment-1344492 Share on other sites More sharing options...
Qiiiii Posted June 30, 2020 Author Share Posted June 30, 2020 (edited) Mod wouldn't do it, because values should be changed often during game. I want to increase monster values randomly little by little so that I have reason to hurry and hop worlds. Actually, mod for this would be great, but it is far beyond my capabilities. I figirued you can save and just copy-past all your settings in bulk every time game is loaded. It is fine, I was afraid I need to do it line by line. It is strange that they don't need any delimiter, it works even without new line. Edited June 30, 2020 by Qiiiii Link to comment https://forums.kleientertainment.com/forums/topic/119035-save-values-set-in-console/#findComment-1349377 Share on other sites More sharing options...
Nappy Posted July 16, 2020 Share Posted July 16, 2020 You could make a function calling the season to increase monster health after each season change... but this would reset after you logged out. If you made monster health dependent on the #day, say tenday = day/10 and monster health = 100 + tenday*X then monster health would increase by X for each 10 days spent in that world... could also do it exponentially which would really make you move! Link to comment https://forums.kleientertainment.com/forums/topic/119035-save-values-set-in-console/#findComment-1354489 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