ID:142627
 
Code:
mob
verb
Attack(mob/M as mob in oview(1))
usr.underlays+='basepunch.dmi'
var/damage = usr.Str - M.Def
if(damage <= 0)
usr << "[M] easily dodges your attack!"
M << "You easily dodge [usr]'s attack."
else
M.Hp -= damage
view() << "[usr] attacks [M] for [damage] HP!"
M:deathcheck()


Problem description:

hi, i am trying to make it so that when u use the attack verb ur charecter punchs...it changes ur icon so that it goes with my punching icon.. does anyone know how to change it so it makes the charecter switch icons to punch
i belive all u have to do is change it icon to attack u should not need a underlay at least thats how its set up in my game
flick()
In response to Wrath69
what?? whats answer with code?
In response to Agrey123
else
flick("attack",usr)
In response to Wrath69
ok i have no idea what ur trying to say..or what ur writing.. so il wait for someone else to answer maybe
In response to Agrey123
mob
verb
Attack(mob/M as mob in oview(1))
flick('basepunch.dmi',usr)
var/damage = usr.Str - M.Def
if(damage <= 0)
usr << "[M] easily dodges your attack!"
M << "You easily dodge [usr]'s attack."
else
M.Hp -= damage
view() << "[usr] attacks [M] for [damage] HP!"
M:deathcheck()

He ment change the underlays thing to a flick() proc.