===============
Countdown Timer
===============
Created by The Necromancer

;---------------------------------------------------------------------------
Countdown Timer -- A simple effect, that can be used to cause a limited effect 
in the game. Usually done with a transformation, or used to remove a specified 
effect when the time runs out.
;---------------------------------------------------------------------------
[Statedef 9000]

[State 9000, TimerSet]
type = VarSet
trigger1 = (whatever)
v = 0
value = 1000 ; Timer value

Next, the -2 state, for the count down:

[State -2, CountDown]
type = VarAdd
trigger1 = Var(0) > 0
var(0) = -1
ignorehitpause = 1