How Do i program a hitdef so its only delivers a certain amount of damage if not enough hits get in?For example:I want a 3 super attack in total to do 300 damageBut even if the two of hits miss i still want it to do 300 damage.What is the best way to achieve this?If possible use this as a base:;---------------------------------------------------------------------------; Giant Shovel[Statedef 2300]type = Smovetype= Aphysics = Sjuggle = 7poweradd= -2000ctrl = 0velset = 0,0anim = 2300sprpriority = 2[State 2300, 1]type = PlaySndtrigger1 = Time = 2value = 0, 1[State 2300, Hit 1]type = HitDeftrigger1 = animelem = 1attr = S, HAanimtype = Mediumdamage = 100,5guardflag = MApausetime = 5,5sparkno = 0sparkxy = -10,-37hitsound = 5,1guardsound = 6,0ground.type = Lowground.slidetime = 10ground.hittime = 11ground.velocity = -5air.velocity = -2.5,-3.5[State 2300, hit 2]type = HitDeftrigger1 = animelem = 2attr = S, HAanimtype = Mediumdamage = 100,5guardflag = MApausetime = 12,12sparkno = 0sparkxy = -10,-37hitsound = 5,1guardsound = 6,0ground.type = Lowground.slidetime = 10ground.hittime = 11ground.velocity = -5air.velocity = -2.5,-3.5[State 2300, Hit 3]type = HitDeftrigger1 = animelem = 3attr = S, HAanimtype = Mediumdamage = 100,5guardflag = MApausetime = 12,12sparkno = 0sparkxy = -10,-37hitsound = 5,1guardsound = 6,0ground.type = Lowground.slidetime = 10ground.hittime = 11ground.velocity = -5air.velocity = -2.5,-3.5fall = 1fall.recover = 0[State 2300, End]type = ChangeStatetrigger1 = AnimTime = 0value = 0ctrl = 1;-----------------------------------------------Thanks in advance
Just an idea, there may be many ways of achieving this : use a varset triggered on movehit for your three hitdefs. For example, set var(40) to 1.Change the damage values of the hitdefs to 0.At the end of the move, use a target life add of -300 triggered on var(40).===========================================================Other way :Set damage for Hit1 to 300.then, in the damage for Hit2, use an ifelse(Hit1 touched,0,300)In Hit3, ifelse(Hit1 touched || Hit2 touched,0,300)