BloxGaming Forums

Our Servers => BloxGaming SB3 => Expression 2 (E2) Code => Topic started by: TromboneShorty on August 09, 2017, 12:08:13 AM

Title: Highly Efficient Gas System Manager
Post by: TromboneShorty on August 09, 2017, 12:08:13 AM
Code: [Select]
@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
}

You can guess it...
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..