obj
verb
Get()
set src in oview(1)//Seaches for items within one tile of you.
if(src in oview(1))//Want to make sure it's there. Not right click, and choose it when you need it.
loc = usr//It moves it to your character.
usr.UpdateInventory();//Updates your inventory.
Problem description:
I can grab any object in the game with that, but I don't want to. How can I make the verb only appear when you're next to an item that can be grabbed, such as a weapon, but make the verb not appear when your next to something such as a door. Also would be nice if it could not appear in right-clicks, and the little input bar at the bottom?
TL;DR:
Make the verb "Get" only appear when next to a grabbable object, if it's not, it's gone.
If you only want the Get() verb to appear for items, you should create a /obj/item type, define the verb there, and define all of your items under that (eg /obj/item/equipment/weapon, /obj/item/food, /obj/item/equipment/armor, /obj/item/material, ect)