ID:1671887
 
(See the best response by Ter13.)
At the moment it lets the player attack only if there is a mob infront of them. However they can right click on said mob and the attack command comes up, how can I make it so that it doesn't?

What is the difference between "var/mob/M", "mob/M" and "M as mob"?

mob/verb
Attack(var/mob/M in get_step(src, src.dir))
set category = "Skills"
if(attdelay || stam < attstam || KOED || train || rest) return
AttackProcs()
SMR(src)
if(M.KOED)
Death(M)
else
DamageA(M)

spawn(attdelayt) attdelay = 0


Best response
set popup_menu = 0


There is no setting for only making the verb appear in the popup menu if it's one step in front of them. Therefore it needs to be eliminated from the popup menu at all times.
"m as mob" doesn't declare "m" as a /mob typed variable.