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 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 Share on other sites More sharing options...
penguin0616 Posted June 17, 2020 Share Posted June 17, 2020 @krylincy "AddGamePostInit" triggers when controllers are being loaded or unloaded. "AddSimPostInit" triggers when the world has loaded, and also provides a player argument. Link to comment Share on other sites More sharing options...
Qiiiii Posted June 30, 2020 Author Share Posted June 30, 2020 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. Link to comment 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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.