ID:155264
 
Ok, basically what I would like is some combo attacking system that will execute combos from keys pressed, however, I want it so I can specify the separate combos (so if the attack combo was ZXCZZ, I could possibly specify in the code ZXCZZ would be a combo) so I can then set the keys to macros to execute attacking verbs. I was kind of thinking to have verbs like ZButton, XButton or something like that, and the verb would check to see what verb was pressed before it, then if it matches it will continue with a combo if there is one, and if not, it can start a new combo, so basically the sequence would be:

Verb
Pressed a key before?
if yes
execute next attack to happen
usr's var (doingcombo) set to 1
delay var adding a number to it (attackdelay += num)
usr's var (doingcombo) set to 0
if no
do nothing until the key can match a combo sequence

I have a basic concept on how it would work, but not how it will be coded, however if none of you are willing to help me out with this, I may just try to code this myself.

It still would really help me out if this could be done and possibly in a better way. Also if it is possible, maybe to restrict it to one key but the attack is changed by what arrow key is being pressed at the same time (So it could be Z Z Z Z Z Z or something like that) so it can be done easier (Kind of like Naruto Shippuden: Ultimate Ninja Storm 2 would be like)
You can modify a special variable to keep track of keys pressed. Using that you can check to see if the combo is being done.
In response to Lugia319
Lugia319 wrote:
You can modify a special variable to keep track of keys pressed. Using that you can check to see if the combo is being done.

Would the special variable be defined as a list?
In response to Narutorox123456
That would probably be one of the more efficient ways of doing it. It also makes for easy cleanup
In response to Lugia319
Lugia319 wrote:
That would probably be one of the more efficient ways of doing it. It also makes for easy cleanup

Ok, I will try it now. Thanks!