========
Power Up
========
Created by The Necromancer

;---------------------------------------------------------------------------
Power Up -- The ability to gain power at a fixed rate. This move is popular 
amongst DBZ and KOF games.

The same logic in this code can be used for life gain, etc...
;---------------------------------------------------------------------------
Part 1 of the code. (Powering up)
[Statedef 9000]

[State 9000, PowerAdd]
type = PowerAdd
trigger1 = ((GameTime%5) = 0) && (command = "holdx") && (command = "holda")
value = 1

[State 9000, PlaySnd]
type = PlaySnd
trigger1 = (whatever)
channel = 1
value = *,*

[State 9000, End]
type = ChangeState
trigger1 = (command != "holdx") || (command != "holda")
value = 9001

Part 2 of the code. (End move)

[Statedef 9001]

[State 9001, StopSnd]
type = StopSnd
trigger1 = Time = 0
channel = 1

[State 9001, End]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

