@name Pinball Score Keeper
@inputs Bump1 Bump2 Bump3 Pad1 Pad2 Pad3 Reset On Pad
@outputs Score Paddlepush B1 B2 B3 Force
@persist Score Setup
interval(10)
if (!Setup) {Score = 0  Setup = 1}
if (Bump1 < 50 & Bump1 != 0) {Bumper1 = 1} else {Bumper1 = 0}
if (Bump2 < 50 & Bump2 != 0) {Bumper2 = 1} else {Bumper2 = 0}
if (Bump3 < 50 & Bump3 != 0) {Bumper3 = 1} else {Bumper3 = 0}
if (Pad1 < 50 & Pad1 != 0) {Paddle1 = 1} else {Paddle1 = 0}
if (Pad2 < 50 & Pad2 != 0) {Paddle2 = 1} else {Paddle2 = 0}
if (Pad3 < 50 & Pad3 != 0) {Paddle3 = 1} else {Paddle3 = 0}

if (Reset) {Score = 0}
if (Bumper1) {Score += 1}
if (Bumper2) {Score += 2}
if (Bumper3) {Score += 3}
if (Paddle1) {Score += 4}
if (Paddle2) {Score += 5}
if (Paddle3) {Score += 6}
Paddlepush = 100 , B1 = 1 , B2 = 2 , B3 = 3

if(On | Pad){Force=4000}else{Force = 0}
