MAPW

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

Usage
Syntax: MAPW

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

Example
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.