Jump to content
  • 0

Varset problems/Combo counting problem


Question

Posted

im trying to find the right code to use to balance out my characters the problem is he has infinite combo priority and im trying to figure out how do u make it so u can do a move only a certain amount of times in a combo im at a lost

1 answer to this question

Recommended Posts

  • 0
Posted

Well, you can use hitcount and uniqhitcount to your advantage here. Hitcount will return the number of hits you have made in your combo among all states, whereas uniqhitcount will return the number of hits in your combo that you've made in your current state. If you want to go about it using VarSet/VarAdd, it's also not that tough. Using VarAdd, you'll have it trigger when you've made a hit to your target. Something like:

[State ****, Count Combo]type = VarAddtriggerall = numtarget && movehit ; Ensure that you have a target and that you've hit the enemytrigger1 = target,gethitvar(damage) ; Ensure that your target received damage from youv = 5value = 1 ; Add 1 to var(5), in this example.

 

51fd7dd1e8049.png

-[Все слова это только слова.]-

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...