mob
icon = 'mob.dmi'
Login()
..()
winset(client, "q", "parent=macro;name=q;command=keydown+q")
winset(client, "q+up", "parent=macro;name=q+up;command=keyup+q")
proc/attack()//a closed range attack
for(var/mob/m in oview(1))
if(usr.Tgt==m)
(usr.health)--
FaceTowards(m)
if(usr.health > 0)
usr<<"You Attacked [m]"
else
usr<<"[m] Died"
verb/keydown(k as text)
set hidden = 1
set instant = 1
if(k == "q") q = 1
verb/keyup(k as text)
set hidden = 1
set instant = 1
if(k == "q") q = 0
Problem description:
So im working on the macros of my game and im trying to implement the macro "q" into the proc attack(), but i cannot find a way to do it, any help?, im new at this