mob/var/current_action
obj/tree_bottom/verb/cut()
set src in view(usr,1)
if(usr.current_action)
usr << "You're already doing something!"
return
usr.current_action = "chopping a tree down"
// This could be more robust, but this is just an example...
spawn(50)
if(usr.current_action == "chopping a tree down")
usr << "You have chopped the tree down!"
usr.current_action = null
I am trying to get the icon of a tree to disappear after the action is completed via the code above and I cant figure out how to make the tree disappear after this is completed successful
If you want it gone you just have to do:
del(src)
Where you want it gone.
If you want it to disappear then come back after a while:
Setting density and whatnot as well of course.