ID:176117
 
i can't figure out how to prevent a character from moving northeast southeast southwest and northwest but i don't know how.. can you help me out? also i am having trouble making a who verb.. can anyone shed some light on that one too?
client
Northeast()
return

Northwest()
return

Southeast()
return

Southwest()
return
mob/verb
who()
set category="Social"
for(var/mob/M in world)
if(!M.client)
..()
else
usr<<"<font color=blue>[M.name]([M.key])</font color=blue>"

There ya go, yea yea, no problem.
In response to Bischoff
No, no, no... gads, your indentation is all screwed up!

I'll fix it for you...

Indendation is a little large here, but at least it's right! =)

<code>client Northeast() return Northwest() return Southeast() return Southwest() return mob/verb who() set category="Social" for(var/mob/M in world) if(!M.client) ..() else usr<<"[M.name]([M.key])"</code>
In response to Crispy
If you want you can make it so when you press one of those to have it activate the who code. Like this.
client
Northeast()
return

Northwest()
who()//when you press the 7 it will be like pressing the who verb.

Southeast()
return

Southwest()
return

mob/proc
who()
set category="Social"
for(var/mob/M in world)
if(!M.client)
..()
else
usr<<"[M.name]([M.key])"