@name Detector Score System
@inputs Crash1 Crash2 Bumper1 Bumper2 Ramp Ball
@inputs Reset

@outputs Score Ball
@persist Score Ball
if (Reset | Ball==0) {Score = 0 Ball = 4}

if (Crash1<55 & Crash1!=0) {Score+=100}
if (Crash2<55 & Crash2!=0) {Score+=100}
if (Bumper1<70 & Bumper1!=0) {Score+=2}
if (Bumper2<70 & Bumper2!=0) {Score+=2}
if (Ramp<50 & Ramp!=0) {Score+=400}
