Indicator lamps

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
User avatar
MrBadDragon
Inserter
Inserter
Posts: 38
Joined: Thu Jan 31, 2019 3:33 am
Contact:

Indicator lamps

Post by MrBadDragon »

I have reached a blockage!

I want to set up a level meter to record the % of levels of science packs in my buffer using a display of lights. I have 10 lights per item.

What I have done is linked all the buffer chests to an arithmetic combinator set to input any / 10% of the buffer and output any. That gives me a value of each item with a range of 0 to 9 which is what I want.

I then program my lights to light up buy item >= 0, item > 0, item >1 .... this works great.

Where I am stuck is how do i replace the explicit reference to the item so I can set the monitor to read the item from a combinator allowing me to paste the indicator and then set up the item in one place rather than having to program each light?

netmand
Filter Inserter
Filter Inserter
Posts: 302
Joined: Wed Feb 22, 2017 1:20 am
Contact:

Re: Indicator lamps

Post by netmand »

- arithmetic combinator to filter the signal to one item (input <item>+0 output:item or color)
- use * at each lamp:
before: item >= 0, item > 0, item >1 ....
after: * >= 0, * > 0, * >1 ....

Post Reply

Return to “Gameplay Help”