mob
verb
Attack()
for(var/mob/M in get_step(src,src.dir))
var/hit = (usr.acc * usr.bp) - M.finess
var/damage = (usr.str * usr.bp) - M.end
energy -= 1
if(hit <= 0)
usr << "[M] dodges your attack!"
M << "You dodge [usr]'s attack."
else
M.hp -= damage
view(10) << "[usr] attacks [M]!"
M:deathcheck()
usr.bp + (0.5 * usr.bp_mod)
if(energy <= 0)
usr<< "You are to tired to attack!"
Problem description: Okay this is my attack verb. So far it is working pretty good. But I want the player's icon to change to a certain thing when it uses this attack verb. Could someone provide some help? Also when the players energy runs out, it says they are too tired to attack, but it still lets them attack. Could I also get someh elp with this?