ID:142113
 
Code:


Problem description:

Ok, so I had an idea in mind that would include on using Click() on an NPC in my game, though the person in question can do it anywhere in the game, so I thought about adding,
set src in oview(1)
or something of the sort to it, but I get an error when I attempt it, and I thought about adding something after you Click() but before my code to check if you're next to the NPC in question...but...

I couldn't figure out what to do for that...

if(usr.loc (isnear???)npc.loc)
executecodehere
else
return


So what's the deal?
Look up get step
In response to A.T.H.K
Ahhhh thank you very much.
Just check for the atom in oview(1)

atom/Click()
if(src in oview(1))
usr << "[src] is nearby."
..()