ID:926185
 
(See the best response by Albro1.)
Code:mob/verb
Attack2()
set hidden=1
if(usr.Punching)
return
usr.Punching=1
spawn(10)
if(usr)
usr.Punching=0
flick("Attack",usr)
for(var/mob/M in get_step(usr,usr.dir))
var/damage = round(usr.Taijutsu * 3.65 - MaxDefence / 1.35)
var/speed = src.Pre-M.Agi //pre is precision and agi is agility
if(speed<=10 && rand(1,100)>=95)//made it pick a rand number when the difference in speed is less than
flick("Miss",src)//and if the rand # is higher than 95 its a miss
//M.DamageShow(damage,200,0,0)
damage=max(1,damage+rand(-1,1))
M.Damage("[damage]")
flick("Hit",M)
M.MaxHealth-=damage
sleep(3)
updateHealth()
updateChakra()
if(M.client)
M.DeathCheck(usr)



Problem description:First of all theres not a thing wrong with this but i need help in making it a combo system up to three but even if i try to add switch(rand(1,3)) it cant do combos

Best response
switch(2) isn't going to do anything. It's always going to be 2.

You need to use DM tags properly so we can see what's going on.

Until you learn how to help us we cannot help you.