YesNoOk
avatar

Hitcount (Read 158 times)

Started by jjmugen, March 26, 2013, 07:11:57 pm
Share this topic:
Hitcount
#1  March 26, 2013, 07:11:57 pm
  • **
Hi, guys

I would to control inside a var the number of combo hits.
I would to know with a var in which number of combo hit I am.

Exemple:

var(10) -> This one

if combo hit is 10 -> var(10) = 10
if combo hit is 11 -> var(10) = 11
if combo hit is 12 -> var(10) = 12
if combo hit is 13 -> var(10) = 13...

I have tried with:

Code:
[State -3, Var] ;DISPLAY
type = AppendToClipboard
trigger1 = 1
text = " | combo Hits=%d"
params = GetHitVar(hitcount)
ignorehitpause = 1
persistent = 1

But... it always print 0

Could anyone help me, please?

Thanks
Re: Hitcount
#2  March 26, 2013, 07:21:38 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Have the variable increase on movehit and reset it when you don't have a target. Gethitvar(hitcount) reads the amount of hits to which your character has been subjected, not how many hits they have dealt.

Alternatively, you can check the enemy's gethitvar hitcount, it mostly depends on what you're ultimate goal is.
Re: Hitcount
#3  March 26, 2013, 07:27:53 pm
  • **
Have the variable increase on movehit and reset it when you don't have a target. Gethitvar(hitcount) reads the amount of hits to which your character has been subjected, not how many hits they have dealt.

Alternatively, you can check the enemy's gethitvar hitcount, it mostly depends on what you're ultimate goal is.

Oh, just thought it was the other way

Solved with:
enemynear,GetHitVar(hitcount)

Thanks