proc/rattai() |
Question(s):
When I let this run and walk into the room with a ratt, he seems not to just step_away, but to also step_to (including walking right up to me)
Also, is spawn the best method here? I simply want the ratt to delay for his metab(olism) between each move.
And along these lines:
Code:
turf |
Problem: This works fine as long as you don't mind clicking 400 times to walk 400 squares (and waiting for metab for each click!) I would rather this works more like walk_to with a delay (metab) between each step, with an allowance for if a new click is received.. and lc and nc are last click and new click, my variable names tend to be short.
Thanks in advance for any help you may provide
Some Slacker
As for clicking with allowance for new clicks - just use a loop. Store the turf that was clicked last and have a loop make you step_to() the clicked turf and then delay between each iteration. Once you reach the destination, reset the clicked turf to null.