@name Master Controller
@inputs Ta:entity Tb:entity Tc:entity Td:entity On
@outputs New1 New2 New3 New4 ID1 ID2 ID3 ID4 Channel
@persist ID1 ID2 ID3 ID4
interval(50)
T1Hi = Ta:height()
T2Hi = Tb:height()
T3Hi = Tc:height()
T4Hi = Td:height()

T1H = Ta:health()
T2H = Tb:health()
T3H = Tc:health()
T4H = Td:health()

ID1 = Ta:id()
ID2 = Tb:id()
ID3 = Tc:id()
ID4 = Td:id()

T1N = Ta:name()
T2N = Tb:name()
T3N = Tc:name()
T4N = Td:name()

Name1 = "Captain Maim"
Name2 = "Muerte"
Name3 = "Mini Muerte"
Name4 = "Lainie Bug"
Name5 = "(TRG)Soap"
Name6 = "Nat_22"
Safe1 = T1N==Name1 | T1N==Name2 | T1N==Name3 | T1N==Name4 | T1N==Name5 | T1N==Name6
Safe2 = T2N==Name1 | T2N==Name2 | T2N==Name3 | T2N==Name4 | T2N==Name5 | T2N==Name6
Safe3 = T3N==Name1 | T3N==Name2 | T3N==Name3 | T3N==Name4 | T3N==Name5 | T3N==Name6
Safe4 = T4N==Name1 | T4N==Name2 | T4N==Name3 | T4N==Name4 | T4N==Name5 | T4N==Name6
if (T1H==0 & Ta:isPlayer() | Safe1) {New1 = 1} else {New1 = 0}
if (T2H==0 & Tb:isPlayer() | Safe2) {New2 = 1} else {New2 = 0}
if (T3H==0 & Tc:isPlayer() | Safe3) {New3 = 1} else {New3 = 0}
if (T4H==0 & Td:isPlayer() | Safe4) {New4 = 1} else {New4 = 0}

Channel = -201
