ID:1877800
 
(See the best response by Kaiochao.)
Code:
mob/verb/attack()
flick("punch",src)
for(var/mob/enemy/E in get_step(src,src.dir))
var/damage=src.brawn-(E.res/3)
E.hp-=damage
E.numberDisplay(damage)
E.healthCheck()
if(E.intelligence==0)
E.target=src
E.intelligence=1
E.AI()
src.deathCheck(E)


Problem description:
How do I put a simple code in here everytime the player does a punch it will decrease the stamina var. Nicknamed "stam". by 5 with every punch?

Best response
stam -= 5

Stick that where you want it to happen.