ID:272981
 
i need to learn how to make a combo system for each weapon in my game. i want it to be diffrent combos for each weapon now if someone could explain or give demonstration of how to do this ill thank you.
More information please, or I'll just give you a line of code that's not helpful in the slightest. What kind of combo's? What are you stuck on? How do you want them to work?
In response to Demon_F0rce
i need it to be like this.

say i have a keyblade equipped i want to be able to press attack and do a slash maybe horizontal. then i want to press attack again and do a slash thats vertical then again and do a spin attack then again and do a stab. something like this but where the combo changes depending on equipped weapon
In response to B-mut
idk if theres another way but heres a way to do
mob
var
combo=1
//add this to your attack verb
if(keyequ=1)
if(combo==1)
icon='firstcombo.dmi'
//attack stuff
src.combo=2
if(combo==2)
icon='secondcombo.dmi'
//attack stuff
//and so on
else
src<<"you dont have a keyblade equiped"


i'm just a bigginer and idk if this will work or if it's wat you want
In response to Jester354
Then refrain yourself from "helping" others.
In response to B-mut
Sorry for the lateness...

Okay, so first, you need to figure out how many combos you're doing.

var/combos_done=0
while(combos_done <= src.keybladecombo)
combos_done++


Done that. Next: you need to add in the combo and damage upgrade.

damage2 = damage1+combo
src.hp -= damage2


For verb/button pushing, simply use a switch() check.