obj/tree_bottom/verb/cut()
set src in view(1)
world << "[usr] is now cutting down the tree!"
if(???):
world << "[usr] has chopped down the tree"
else:
world << "[usr] has stopped chopping the tree"
Problem description:
I am trying to figure out what to type for the if statement if the player moves out of his current position since I want it so if you move in the process of cutting the tree then it stops.. How would I do this?
This, of course isn't going to trigger as soon as the player moves, but it will handle the movement happening (of course, they can move and move back to where they started and still succeed).
A more ideal solution is handling things inside of movement itself, or even prevent movement while they're doing something.
Do with it what you will, there's a lot you can expand on with it :)