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
ID:148932
Aug 11 2002, 5:13 pm
|
|
Aug 11 2002, 5:14 pm
|
|
Look up bump() in the reference for starters. When they bump into the ammobox, grab() it, and load() it.
|