Page 1 of 1

Changing settings based on other settings (and their values)

Posted: Wed Jan 24, 2024 3:25 pm
by BraveCaperCat
I want to be able to change a setting based on the value of another setting, or at least disable+hide different settings based on the value of a setting, like a dropdown menu selected by another dropdown menu. This would be very useful, as it allows other mods to add other things to my mod which i am making, which enables different recipes based on a setting. I then use another setting to chose which of the new recipes to unlock in control.lua, which is all implemented in the library the mod creates (it also adds some examples)

Re: Changing settings based on other settings (and their values)

Posted: Wed Jan 24, 2024 7:18 pm
by Rseding91
This is technically not possible. Settings defined based off the value of settings is the definition of an infinite loop. Every time it would run it could get a different result.

So sorry, but this can never be done.