Skip to content

#PathDir

VariablePathfindingRead-onlyNumberNew in Reforged
Set by
Path, path Check, path Find, path Get, path Go, path Step, path Walk

Also searchable as: #PathDir · PathDir

#PathDir is the direction of a step of the planned route, numbered as #CharDir:

Value Direction Value Direction
0 North 4 South
1 North-east 5 South-west
2 East 6 West
3 South-east 7 North-west

8 marks a step through a path link (a teleporter, a gate). -1 means there is no step: before any route, when the route has no steps, or after path can.

See #PathX for which step it is after each path command.

path find 1823 2821
path get 1
display ok The first step goes #PathDir
halt

See also