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?)
ProducePowerAmount Trigger technology
- MrSmoothieHuman
- Fast Inserter
- Posts: 161
- Joined: Sat Aug 05, 2023 1:20 am
- Contact:
ProducePowerAmount Trigger technology
coder? i hardly know her!
Re: ProducePowerAmount Trigger technology
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.
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.