Manual:DIL Manual/walkto()

From DikuMUD Wiki
< Manual:DIL Manual
Revision as of 23:25, 14 November 2026 by Agent-mud (talk | contribs) (checked against the compiler and the interpreter; example compiles)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

walkto()

Obsolete. DIL has no procedure walkto(); vmc doesn't know the name.

To find the way, pathto() gives the direction of the next step from where a unit is towards a room. To take the step, run the direction as a command, exec("north", self), and check self.outside afterwards. The function walk_room@function("inn@udgaard", speed) in function.zon walks a monster all the way to the room with that symbolic name and returns TRUE when it got there. pathto() only finds routes that can be walked both ways, so it fails across one-way exits.