Total players online: 25



Take the Tour | Site Map

Name

findDirectionTo — Find the direction from character to something.

Synopsis

call subs.txt findDirectionTo { worldx } { worldy } [ return ]

Author

Roadkill

Parameters

Table 44. findDirectionTo parameters

NameDescription
worldxWorld x-coordinate
worldyItem ID 2
returnName of return value ('return' by default)

Description

Find the direction from character to something.

Returns

%@3, (%_NORTHWEST, %_NORTH,%_NORTHEAST, %_EAST, %_SOUTHEAST, %_SOUTH, %_SOUTHWEST, %_WEST or %_SAMETILE).