@name Voice
@inputs 
@outputs 
@persist 
@trigger 
runOnChat(1)
interval(100)

if (chatClk(owner()) & owner():lastSaid():find("Move along")) {
    owner():soundPlay(1,0,"npc/metropolice/vo/movealong.wav")
} elseif (chatClk(owner()) & owner():lastSaid():find("Pick up that can")) {
    owner():soundPlay(2,0,"npc/metropolice/vo/pickupthecan1.wav")
    timer("wait",2500)
} elseif (chatClk(owner()) & owner():lastSaid():find("Don't move")) {
    owner():soundPlay(3,0,"npc/metropolice/vo/dontmove.wav")
}

if (clk("wait")) {
    owner():soundPlay(4,0,"npc/metropolice/vo/pickupthecan2.wav")
}
