Page 1 of 1
Lock Recipe Technology effect
Posted: Wed Feb 04, 2026 11:22 pm
by protocol_1903
As in title, I would like an inverse to the 'unlock-recipe' technology research effect that instead locks the linked recipe. If implemented, this brings up the question of if it should lock the recipe if it was from multiple sources or was always available: I posit that it should lock the recipe, regardless of if/how it was previously unlocked. This makes the most sense from a simple perspective, is the easiest to implement, and is easiest to understand from the player perspective.
Re: Lock Recipe Technology effect
Posted: Sun Feb 08, 2026 3:40 am
by Quorken
Hmm. I suppose this could be used when researching a "better understanding" of iron casting, unlocking a more efficient recipe, and locking the existing one?
Or to have "alternate" recipes, where you can only have one active at a time - each alternate's technology would lock the other alternates' recipes. And maybe it would also automatically "un-research" the other alternates' technologies (would be likely be a separate interface request, for a "un-research other technology" technology effect.).
Would this reset any machines with the now-locked recipe set?
Re: Lock Recipe Technology effect
Posted: Sun Feb 08, 2026 3:57 am
by eugenekay
I think you can already do this via the
on_research_finished event, and then setting
recipe enabled=false.
Good Luck!
Re: Lock Recipe Technology effect
Posted: Sun Feb 08, 2026 7:09 am
by protocol_1903
The point is to not need to run scripts like that, and having proper support for this 'feature' is always better than scripting it manually. Additionally, script locking recipes is not respected when the technology tree is refreshed and enabled recipes are checked again.
Re: Lock Recipe Technology effect
Posted: Sun Feb 08, 2026 7:09 am
by protocol_1903
Quorken wrote: Sun Feb 08, 2026 3:40 am
Would this reset any machines with the now-locked recipe set?
I assume so, similar to how surface conditions lock recipes.