@name Gun Shop E2
@inputs MONEY
@outputs Use Use1 Use2 Use3 Use4 Fire Use5
@persist 
@trigger 
if(first()){Fire = 1}
interval(3000)
timer("fire",500)
if(MONEY==1000){Use1 = 1 Use = 1 
    timer("unuse",3000)
    timer("stopdrop1",1500)}

if(MONEY==500){Use2 = 1 Use = 1 Use4 = 1
    timer("unuse",3000)
    timer("stopdrop2",1500)
     timer("stopdrop4",1500)}
    
    if(MONEY==3400){Use3 = 1 Use = 1 Use5=1
    timer("unuse",3000)
    timer("stopdrop3",1500)
    timer("stopdrop5",1500)}
    
    if(MONEY==200){Use = 1 Use4 = 1
         timer("unuse",3000)
    timer("stopdrop4",1500)
        }
            if(MONEY==210){Use = 1 Use5 = 1
         timer("unuse",3000)
    timer("stopdrop5",1500)
        }




if(clk("fire")){
Fire = 0
timer("fire2",500)}
if(clk("fire2")){
Fire = 1
timer("fire",500)}



if(clk("stopdrop1")){
Use1 = 0}
if(clk("unuse")){
Use = 0}
if(clk("stopdrop2")){
Use2 = 0}
if(clk("stopdrop3")){
Use3 = 0}
if(clk("stopdrop4")){
Use4 = 0}
if(clk("stopdrop5")){
Use5 = 0}

