Welcome to the Creatures Wiki! Log in and join the community.

GMAP

From Creatures Wiki
Jump to: navigation, search

GMAP is a CAOS function that returns the metaroom id at a given point in the map.

Usage[edit]

Syntax: GMAP x(integer) y(integer)

Returns the metaroom id at the given x,y point in the map. If there is no metaroom there, it returns -1.

Example[edit]

Being used to check if C3 is docked in a DS world:

doif gmap 100 100 ne -1
	**do stuff that requires C3 be docked

See Also[edit]