[IDEA] Always selecting the correct number of factories

Day 3,907, 01:38 Published in Ireland Ireland by Releasethe Krakken

Currently we have 2 toggles on the company list.

Select All and Select None

IF you have 200 factories and 1000 energy you cannot work in that Holding company right at that minute. Else than manually selecting 100 factories.

So my idea is quite an easy update or script if anyone is interested in doing perhaps an economix script.

If my energy < less than energy required to work in all factories selected.

The program should simply run through the companies and select as many factories as I have energy available.

The code would be quite easy

Worksleft = energy / 10
For intX = 0 TO HC(N).nbroffactories - 1
if worksleft > 0 then
HC(N).Factory(int😵.toggle = on
worksleft -= 1
next
end sub

Ok actual coding would probably be different but Ok.