ProducePowerAmount Trigger technology

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
MrSmoothieHuman
Fast Inserter
Fast Inserter
Posts: 161
Joined: Sat Aug 05, 2023 1:20 am
Contact:

ProducePowerAmount Trigger technology

Post 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?)
coder? i hardly know her!
meifray
Fast Inserter
Fast Inserter
Posts: 127
Joined: Sat May 29, 2021 6:12 pm
Contact:

Re: ProducePowerAmount Trigger technology

Post 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.
Post Reply

Return to “Modding interface requests”