you're going to have to use a
parentvaradd
it should look something like this
[State 1005, combo counter] ( just an example)
type = ParentVarAdd
trigger1 = MoveHit
v = 11
value = 6
persistent = 0
then you should link it to the
[statdef -2] using varadd
Example:
[State -2, Add new hits to combo]
type = VarAdd
triggerall = var(7)
trigger1 = var(10) > 0 || var(11) > 0
v = 8
value = var(10) + var(11)
which would effect var(
in this case
determined by var(7) which states that the combo is active
it uses many float variables
much of this varies depending on the vars used
knowledge of variables should be known for combo support
Here is the sample combo tracker I used in my examples which was taken from this forums carnage character:
; Combo Tracker
[State -2, Start Count]
type = VarSet
triggerall = P2MoveType = H && !WinKO
trigger1 = var(7) = 0
v = 7
value = 1
ignorehitpause = 1
[State -2, Set]
type = VarSet
triggerall = var(7)
trigger1 = HitCount > var(9)
v = 10
value = HitCount - var(9)
[State -2, Set]
type = VarSet
triggerall = var(7)
trigger1 = HitCount < var(9)
trigger1 = HitCount != 0
v = 10
value = HitCount
[State -2, Set]
type = VarSet
triggerall = var(7)
trigger1 = HitCount = var(9)
trigger2 = HitCount = 0
v = 10
value = 0
[State -2, Projectile Hits]
type = VarAdd
triggerall = var(7)
trigger1 = ProjHit = 1
v = 10
value = 1
[State -2, Add new hits to combo]
type = VarAdd
triggerall = var(7)
trigger1 = var(10) > 0 || var(11) > 0
v = 8
value = var(10) + var(11)
; Set Attack Ratio for Damage Dampening
[State -2, First Decrease]
type = VarSet
triggerall = var(7)
trigger1 = var(
> 1
trigger1 = var(
< 4
fv = 1
value = .44
ignorehitpause = 1
[State -2, Second Decrease]
type = VarSet
triggerall = var(7)
trigger1 = var(
= [4,8]
fv = 1
value = .37
ignorehitpause = 1
[State -2, Third Decrease]
type = VarSet
triggerall = var(7)
trigger1 = var(
= [9,12]
fv = 1
value = .31
ignorehitpause = 1
[State -2, Fourth Decrease]
type = VarSet
triggerall = var(7)
trigger1 = var(
= [13,16]
fv = 1
value = .28
ignorehitpause = 1
[State -2, Final Decrease]
type = VarSet
triggerall = var(7)
trigger1 = var(
> 16
fv = 1
value = .24
ignorehitpause = 1
[State -2, Clear Helper Hits]
type = VarSet
trigger1 = var(7)
v = 11
value = 0
[State -2, Spawn Combo Report Helper]
type = Helper
triggerall = var(7)
triggerall = NumHelper(929) = 0
triggerall = (StateNo != 1500) && (StateNo != [1645,1650])
trigger1 = P2MoveType != H || WinKO
trigger1 = NumHelper(930) = 0
ID = 930
name = "Combo Report"
StateNo = 10020
postype = p1
pos = 0, 0
ownpal = 1
ignorehitpause = 1
[State -2, Leave Combo Counting Mode]
type = VarSet
triggerall = var(7)
trigger1 = P2MoveType != H || WinKO
v = 15
value = var(
ignorehitpause = 1
[State -2, Leave Combo Counting Mode]
type = VarSet
triggerall = var(7)
trigger1 = P2MoveType != H || WinKO
v = 8
value = 0
ignorehitpause = 1
[State -2, Leave Combo Counting Mode]
type = VarSet
triggerall = var(7)
trigger1 = P2MoveType != H || WinKO
v = 9
value = 0
ignorehitpause = 1
[State -2, Leave Combo Counting Mode]
type = VarSet
triggerall = var(7)
trigger1 = P2MoveType != H || WinKO
v = 7
value = 0
ignorehitpause = 1