ID:143061
 
Code:
obj
var
equip_head=0
equip_body=0
equip_hands=0
equip_arms=0
equip_feet=0

equip_box=""

mob/proc/UpdateInventory()
for(var/obj/O in src)
if(O.equip_head==1 && O.equip_body==1 && O.equip_hands==1 && O.equip_arms==1 && O.equip_feet==1)
continue
winset(src, "inventory", "current-cell")
src << output(O, "inventory")
obj/items
verb/Get()
set src in oview(1)
if(src in oview(1))
loc = usr
usr.UpdateInventory()

verb/Equip()
for(var/obj/items/O in src)
if(O.equip_box=="Hands")
winset(src, "hands", "current-cell=1,1")//i have also tried "current-cell" and various others
src << output(O, "hands")


obj/items
Sword
icon = 'sword.dmi'
equip_box = "Hands"


Problem description:

Once the item is in the "inventory" grid, when i want to equip the 'sword' item it does not show in the "hands" grid which i have created in the interface.
You don't need to change current-cell at all if it's one per grid control. Just output it to the hands control.
In response to Kaiochao2536
Does not work.
In response to Nishiatsu
make sure the grid is big enough, if not, nothing will show up but, the cell will still recieve clicks for the object in it.
In response to LawkJaw
i've got it working.
Cheers anyway.