(info) Other great resources: Official JS API docs, Scripting Forum

mapName

Overview

A string containing the name of the map being played.

This can be quite useful when your script behaves oddly on a certain map - you can use mapName to make your script behave differently when played on that map. For example, on a map with lots of water, you can increase the priority of researching and then using hovercraft propulsion.