ID:158737
 
you know.. u pick up and obj like u pick up a pie then it goes to an inventory grid in your interface. how do i do that ?
You output() that item to the appropriate element ID. This can be useful if combined with mob/Entered(), where you have to check if the item path to send it to the appropriate element:
#define isfood(X) istype(X, /FOOD)
mob/Entered(item/I)
if(isfood(I))
Output to FoodGrid
else if(isweapon(I))
Output to WepGrid
else if(isitem(I))
Output to GenItemGrid
else
Output to GarbageGridID
Try Lummox JR's interface tutorial.