mob
Login()
world << "[src] has logged in!"
var
inAction = 0
actionCount = 0
fakeAttack = 0
damage = 100
verb
Punch_Left()
set name = "Left Punch"
if(usr.inAction)
usr.fakeAttack = 1
usr.actionCount++
usr.damage++
usr.inAction = 1
usr.actionCount++
view(0) << "[usr] retracts their left arms..."
spawn(23)
damage(damage, "left punch")
proc
damage(damage, attackname)
if(fakeAttack)
fakeAttack = 0
return
if(!inAction) return
usr.inAction = 0
usr.fakeAttack = 0
view(0) << "[src] left punch does [round(src.damage)] damage. | [src.actionCount]"
Problem description:
Basically my melee system checks if you execute the attack again to cancel the previous one but if you spam it they will stack and rapidly execute one after another...