Page 1 of 1

ProducePowerAmount Trigger technology

Posted: Sat Oct 04, 2025 9:32 am
by MrSmoothieHuman
Wanted to ask about the possibility of adding a trigger technology, that requires X amount of power to be produced. The way I imagine it working is that if all prerequisites are met and the power grid is producing the specified amount or more, the technology is unlocked.
(With regards to multiple power grids existing, I imagine just checking if any have gone over X amount wanted would suffice?)

Re: ProducePowerAmount Trigger technology

Posted: Sat Oct 04, 2025 1:01 pm
by meifray
I think it is possible to do it without request an interface:

In each tick, if player is selected a power pole, read LuaFlowStatistics and get the amount, if such network do have enough power of give time frame, trigger the custom trigger technology.