Our Servers > Expression 2 (E2) Code

Highly Efficient Gas System Manager

(1/1)

TromboneShorty:

--- Code: ---@name Life_Support_Manager
@inputs E_Storage O_Storage T_Storage D_Storage M_Storage
@outputs T_Collector D_Collector M_Collector T_Inverter D_Inverter M_Inverter Collector_Mult Inverter_Mult Mute

Collector_Mult = 100
Inverter_Mult = 10
Mute = 1

 if (E_Storage)
{
T_Collector = 1
D_Collector = 1
M_Collector = 1
}
else
{
T_Collector = 0
D_Collector = 0
M_Collector = 0
}

if (T_Storage >= 5000)
{
    T_Inverter = 1
}
else
{
    T_Inverter = 0
}

if (D_Storage >= 5000)
{
    D_Inverter = 1
}
else
{
    D_Inverter = 0
}

if (M_Storage >= 5000)
{
    M_Inverter = 1
}
else
{
    M_Inverter = 0
}

--- End code ---

You can guess it...

* Mult is multiplier, make sure to connect to the right components.
* E_Storage is value from the Battery Cells / Resource caches
* T is Tritium
* D is Deuterium
* M is Methane.Not really complicated E2, but operates on duped if wired correctly. and i made this because I'm lazy and I hate wiring LS every time I build a ship..

Navigation

[0] Message Index

Go to full version