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

MAPW

From Creatures Wiki
Jump to navigation Jump to search

MAPW is a CAOS function that returns the width of the game map.

Usage[edit]

Syntax: MAPW

This returns an integer which is the total width of the map.

Example[edit]

One way to check if the map has already been enlarged when installing a metaroom:

doif maph < 100000
	mapd mapw 100000
endi
doif mapw < 100000
	mapd 100000 maph
endi

In this case, simply using MAPD 100000 100000 is easier, of course.

See also[edit]