obj
Equipment
var
slot
Armour
MouseDrop(over_object,src_location,over_location,src_control,over_control,params)
var/plist[] = params2list(params)
usr << "screenloc = [plist["screen-loc"]]"
Problem description:
This outputs "screenloc = hud:5:20,1:19" as it's meant to. However, I was wondering if there was an in-built proc that could tell me which atom is at that location.
Why? Well I want to drag obj's onto a specific obj on my HUD to 'repair' them. I could do this manually by checking the screen-loc string for the right co-ords, but this is a bit inelegant, and if I ever need to do something similar again I'll have to manually work out the co-ords again. I'd much prefer an automatic way of doing this.
OR, is there a way of getting the atom I'm dropping the obj on straight from MouseDrop()? I've seen that it tells me the turf I drop it on if I drop it on to the main map, but it doesn't work on my HUD 'map'.