ID:170027
 
Problem description: well for my game I have a sort of Pacman-esque part. The problem is, in pacman when you walk over the yellow dots or whatever, they are automatically picked up. I don't have a clue as to how to do that in coding... I tried making a regular Get verb, but then you have to annoyingly macro or click the Get button on the screen to pick the item up. Any help would be greatly appreciated, thanks.

Shadowdarke has made a bwicki page for just this type of thing. =)
In response to YMIHere
oh ok, thank you very much, i will look into that.

edit: yes, that is exactly what i was looking for, thank you!
In response to Starwarspower
Starwarspower wrote:
oh ok, thank you very much, i will look into that.

edit: yes, that is exactly what i was looking for, thank you!

Also, an alternative would be to use Bump(), or over-ride your Move() proc.

EX:
mob
Move(Loc,Dir)
var/obj/items/I=locate() in Loc
if(I)
src.Get(I)
proc
Get(obj/items/I)
if(I)
var/turf/T=I.loc
for(var/obj/items/Item in T)
Item.Move(src)