Map game files

From King Arthur's Gold Wiki
Revision as of 16:29, 8 January 2013 by Splittingred (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Map game files, with the .gm extension, can be used to run scripts prior to loading the map. They can be specified in the "mapcycle" variable in the MapCycle.cfg file.

You can use these files to run scripts during map load, customize the map, spawn bots, or add workshops.

Examples

Spawning Workshops

The following map.gm file, when loaded, will load the map at "Rules/MODE/Maps/map.png", and then spawn a Tunnel (tunnel config not supplied by default) at X of 212 and Y of 692, with the "neutral" (used by both players) team.

LoadMap( "Rules/MODE/Maps/map.png" );
addBlob(`room`,`Rules/MODE/Rooms/Tunnel.cfg`,212,692,3); 

See Also