ID:148932
 
How would I set this up to automatically grab and load the item on touch???





obj

item
ammo
icon = 'ammo.dmi'
icon_state = "ba"
verb
Load()
if(usr.ammo >=91)
alert("Your to Full!!!")

else
usr.ammo += 10
alert("You get 10 more bullets")
del(src)


Grab()
set src in oview(1)
alert("You grab the ammunition box")
usr.contents += src
Look up bump() in the reference for starters. When they bump into the ammobox, grab() it, and load() it.