================
Life Persistency
================
Created by The Necromancer

;---------------------------------------------------------------------------
Life Persistency -- One of KOF's unique features, was the
persistentcy of life values between rounds. This is
particularly useful if you are creating a 3 on 3 type
character just as in KOF.

This feature was also present in games such as KI, where
you have one round fights.

This code requires one persistent variable.
;---------------------------------------------------------------------------
1.) To begin, insert this code into statedef -2:

;Life Persistency between rounds.
[State -2: VarSet]
type = VarSet
trigger1 = Win
v = 0
value = Life

2.) Now, in state 180, or your win state, add in this code. This is used
to add in half of your current life, just as in the original KOF games. Of
course, this is optional.

[State 180: LifeAdd]
type = LifeAdd
trigger1 = Time = 0
value = (Life/2)
absolute = 1

3.) Finally, in state 5900, add this code in. This is what keeps the life values
between rounds.

[State 5900: LifeSet]
type = LifeSet
trigger1 = (Time = 0) && (RoundNo > 1) && (Var(0) > 0)
value = Ceil(Var(0))

Alternatively, you may use this code instead, if your character does not use it's own
common1.cns file.

[State -2: LifeSet]
type = LifeSet
trigger1 = (RoundState = 1) && (Time = 0) && (RoundNo > 1) && (Var(0) > 0)
value = Ceil(Var(0))
