hitcount bug

Started by DR119, December 17, 2017, 10:17:17 PM

Previous topic - Next topic

DR119

I want to return the maximum combo, so I've made a varset which sets the var to hitcount if hitcount is bigger than the var. I checked it with displaytoclipboard, but the var doesn't increase to 2 when the combo counter shows 2. It increases after the first hit and it increases to 2 and higher numbers when the combo is larger than 2. Is this some kind of bug or have I done something wrong?

Odb718

Wait, What?
It increases after the first hit and it increases to 2 and higher numbers when the combo is larger than 2.
So it skips the number 2?
It shows 1, then shows 3?
or on the first hit it shows 1, then on the 3rd hit it shows 2?

Post your add and reset code. Would help a lot I think.
vVv Gouken718 vVv SabreTooth718 vVv


Vans

Hello.

http://www.elecbyte.com/mugendocs/cns.html#hitcountpersist

You might need to change this parameter, since the trigger you're using depends directly on this.

DR119

Quote from: Odb718 on December 17, 2017, 11:21:53 PM
Wait, What?
It increases after the first hit and it increases to 2 and higher numbers when the combo is larger than 2.
So it skips the number 2?
It shows 1, then shows 3?
or on the first hit it shows 1, then on the 3rd hit it shows 2?

Post your add and reset code. Would help a lot I think.

After the 3rd combo hit, the var increases to 2, after the 4th it increases to 3

DR119

Quote from: Vans on December 17, 2017, 11:57:01 PM
Hello.

http://www.elecbyte.com/mugendocs/cns.html#hitcountpersist

You might need to change this parameter, since the trigger you're using depends directly on this.

But if the counter is carried over to the next state, the number never resets to 0, isn't it? I want the var to always be set to the same number as the combo counter

inktrebuchet

#5
You could try sets the var to hitcount, if hitcount is greater than *or equal to* the var.

Posting that piece of your code might help us understand what you're doing.

DR119

It now works if I use enemy,gethitvar(hitcount) instead, so the hitcount trigger seems to be a bit buggy