ID:1637564
 
Keywords: click, grid, procedure, right
(See the best response by I2edSmok3.)
Code:
    Basic_Vest
icon='Basic Vest.dmi'
icon_state="Inv"
Description="A standard vest."
verb
Pick_Up()
set src in oview(1)
usr<<output("You pick up the vest.","default.ChatOutput")
usr.Inventory_Add("clothing/Basic_Vest")
src.Move(usr)
Click()
if(src in usr.contents)
if(wearing==0)
src << "You put on the vest."
view(8) << "[usr] puts on a sleveless vest."
usr.overlays+='Basic Vest.dmi'
wearing=1
else
src << "You takes off your sleveless vest."
view(8) << "[usr] removes their sleveless vest"
usr.overlays-='Basic Vest.dmi'
wearing=0


Problem description:

My issue here is that i'd like to be able to still right click items whilst they're in the grid you designated them to so that they can be droppable in that fashion. If you need to know what Inventory_Add entails, here you go.


mob/proc/Inventory_Add(TraitMemoryVar)
var/list/A=src.inventory
var/C = TraitMemoryVar
var/T = text2path("/obj/inventory/[C]")
var/obj/inventory/O = new T
var/found=0
var/obj/P=O
for(P in A)
if(P.type == O)
found=1
if(found)
return
else
O.Owned=1;O.Owner="[src]";O.ininventory=1
src.inventory+=O


Thank you to whoever decides to assist me.
Best response