I'm not too sure what you mean,
but i made a script that when your in a trigger zone for over 60 seconds you will die(run out of air), however if you go in and out before the 60 seconds is up, it will reset the timer(get you breath back).
;Artificial Intelligence Script
;Header
desc = player within zone, 60 seconds counted, player dies
;Triggers
:state=0,plrwithinzone=0:state=0
:state=0,plrwithinzone=1:timerstart,state=1
:state=1,timergreater=60000:state=2
:state=2,plrwithinzone=0:state=0
:state=2,plrwithinzone=1:plraddhealth=-1000,state=0
;End of Script