Quote (buy)
To hit several times is more complicated.
Not really, to "hit" several times within the same attack depends on how you want to activate the hitdef. For Example, let's say I want state 200 to hit four times; all I need to do is alter the hitdef trigger to make it happen.
[State 200, 1]
type = HitDef
trigger1 = Time = 0
attr = S, NA
damage = 20, 5
animtype = Light
guardflag = MA
hitflag = MAF
priority = 4, Hit
pausetime = 7,7
sparkno = s7000
sparkxy = -13, -65
guard.sparkno = s7006
guard.sparkxy = -13, -65
As you can see the current hitdef is set to activate only once, and as soon contact is made. To be more accurate, Frame 3 (Because it is the only frame with a Clsn1) in animation 200 is the point of contact. That said let's change it.
type = HitDef
trigger1 = animelem = 3
To make the hitdef to activate more than once you can do this in a number of ways: Time, animelem, animelemtime, a combo of vars and string arugments. Lets use animelem.
Now let's say I have three extra frames with Clsn1's (Frames 4, 5, and 6), and I want to add those frames to the hitdef; then you just need to do this.
type = HitDef
trigger1 = animelem = 3
trigger2 = animelem = 4
trigger3 = animelem = 5
trigger4 = animelem = 6
You can also simplify this to this:
type = HitDef
trigger1 = animelem = 3 || animelem = 4 || animelem = 5
trigger2 = animelem = 6
Save & Test.