MongooseWhere programmers kick back and build silly things together.

All help topics · Link to this topic

Showing help on '$walking_utils'

General information on $walking_utils:
----
A set of utility verbs related to walking.
interface as follows:
make foo walk from room it's in to some other room:

$walking_utils:walkto(foo, whereto)

foo is expected to define:
foo.walking_task - current taskid of walking task (ew, kinda gross)
foo:move_by_exits(path, dest)
(this can just call $walking_utils:move_by_exits(who, path, dest) if it wishes)
this is called to move by exits along path to dest
foo:begin_walking(path, dest)
this is called just before walking begins
foo:end_walking(dest)
this gets called when you stop walking for any reason
foo:penultimate_step_in_walking(dest)
this is called just before the last exit is transited