@name Target Multi Assassin
@inputs A B C D Self
@outputs X Y Z Fire Channel
@persist Self X1 X2 X3 X4 Y1 Y2 Y3 Y4 Z1 Z2 Z3 Z4
interval(50)
if (Self==1) {
X1 = A
Y1 = B
Z1 = C 
Channel = -201} elseif
(Self==2) {
X2 = A
Y2 = B
Z2 = C
Channel = -202} elseif
(Self==3) {
X3 = A
Y3 = B
Z3 = C
Channel = -203} elseif
(Self==4) {
X4 = A
Y4 = B
Z4 = C
Channel = -204}

Active = D


if 
(Self == 1) {X = X1, Y = Y1, Z = Z1} elseif 
(Self == 2) {X = X2, Y = Y2, Z = Z2} elseif 
(Self == 3) {X = X3, Y = Y3, Z = Z3} elseif 
(Self == 4) {X = X4, Y = Y4, Z = Z4} elseif
(Self == 0) {X = 0, Y = 0, Z = 0}
if (Active & (X + Y +Z)!=0) {Fire = 1} else {Fire = 0}
