ID:178812
 
I want to make a drop and drag invertory where you can click on an object and it comes in your hand then you can put it in your inverntory. Any ideas on how i would do this.
Mrhat99au wrote:
I want to make a drop and drag invertory where you can click on an object and it comes in your hand then you can put it in your inverntory. Any ideas on how i would do this.
mob/var
SOut=0
obj/Something
icon='something.dmi'
verb
Drop()
new/obj/Something(locate(usr.loc))
del(src)
Take_Out()
if(usr.SOut==0)
del(src)
usr.overlays+='something.dmi'
usr.SOut=1
else
usr<<"You already have an [src] out!"
Put_Back()
if(usr.SOut==1)
new/obj/Something in usr
usr.overlays-='something.dmi'

hope that helped
In response to Strange Kidd
I know how to do that i mean like, ehere you click on an object it goes in your cursour then when you click on the ground it dops on the ground.
The other thing i want to try is to make a hud inventory system even without click and drop. I really want to start on a hud inventory sytem