Page 1 of 1

game.forces.technologies.tech_name.saved_progress should show progress for trigger techs

Posted: Tue Apr 15, 2025 3:50 pm
by Galdoc
If I have a technology that uses, say, research_trigger = {type = "craft-item", item = "iron-gear-wheel", count = 100}, I'd like to be able to, at runtime, see the progress that's been made towards this tech. This applies to all other types of technology research triggers that involve a count property.

Re: game.forces.technologies.tech_name.saved_progress should show progress for trigger techs

Posted: Tue Apr 15, 2025 5:59 pm
by curiosity
What if the tech has both trigger and unit? Which progress should it show then?

Re: game.forces.technologies.tech_name.saved_progress should show progress for trigger techs

Posted: Tue Apr 15, 2025 7:40 pm
by Galdoc
I didn't realize it could have both. Then, maybe it should get its own property.