Galaxy Editor
Galaxy Editor documentation · AI edition

Galaxy Editor Random Map Scripts (RMS): AI Edition

How to write .rms random map scripts for Galaxy Editor's Random Map Generator, for Total Annihilation.

On this page

A condensed version of the full reference, sized for AI tools that read only part of a long page. It has everything needed to write a working random map script (.rms) for Galaxy Editor, a map editor for the 1997 real-time strategy game Total Annihilation (TA). Use only names listed here. If you need more detail or more examples, read the full reference.

1. What a Galaxy Editor RMS is

  • File > Random Map Generator... has a script box, a Players count (1 to 10), a Seed and a Generate button. Generate repaints the map that is open. The map's size comes from the open map, not the script.
  • The language is Age of Empires II (AoE2) random map script syntax (<LAND_GENERATION>, create_land { }, /* */, #const, if, start_random), adapted to TA. Terrains are Galaxy Editor Tile Brush ground types such as GREENWORLD_BASE-60. Objects are TA features: trees, rocks, metal deposits, geothermal vents and start positions.
  • Coasts, cliffs, shallows and blends between ground types are filled in automatically. Same script, Seed and Players always give the same map.
  • Every terrain name ends in a height on a 0 to 255 scale. Sea level is 50: 0 to 50 is under water, 51 and up is dry land.

2. The ten rules

  1. Use only the terrain, stamp and object names on this page. Unknown names are skipped. Typos are the most common cause of a broken map.
  2. Terrain names are WORLD_BASE-HEIGHT in capitals, with current heights: GREENWORLD_BASE-60, not GREENWORLD_BASE-85. Old names were 25 higher and no longer exist.
  3. One script tile is one "square" = 16 x 16 map tiles. Maps are only 8 to 32+ squares across. Never copy AoE2 numbers like base_size 12 or number_of_tiles 500; scale them down 10x or more.
  4. Object distances are in feature cells: 32 to a square. min_distance_to_players 16 is half a square.
  5. Start with <PLAYER_SETUP>, then <LAND_GENERATION> with a base_terrain, usually a water such as GREENWORLD_BASE-0. Sections always run in this order: lands, elevation, cliffs, terrain, connections, objects.
  6. Keep neighbouring ground types joinable (Section 10). Inside one world the generator adds missing in-between ground; between worlds only certain pairs blend.
  7. Put a space after /* and before */. /*comment*/ is not a comment.
  8. Math goes in parentheses with spaces around each operator: (4 * 2). Write rnd(1,5) with no spaces. Math runs strictly left to right.
  9. if tests only names (if TINY_MAP). No comparisons like if PLAYERS > 4. Make flags with #define.
  10. Every create_land, create_terrain, create_elevation, create_object and create_connect_... needs a { } block, even an empty one.

3. Units and sizes

  • Square (script tile, lattice node): 16 x 16 map tiles. Used by all land, terrain, elevation, cliff and connection sizes: base_size, number_of_tiles, other_zone_avoidance_distance, spacing_to_other_terrain_types, cliff lengths, terrain_size.
  • Percent of the map (0 to 100): land_percent, the four borders, land_position, circle_radius.
  • Feature cell: 1/32 of a square. Every distance in <OBJECTS_GENERATION>.
  • Map tile: only for stamp sizes. An "8X8" stamp is half a square, "16X16" one square, "32X32" 2 x 2 squares.

The generator paints nodes at the corners between squares. A map W x H squares has (W + 1) x (H + 1) nodes. x runs left to right, y top to bottom: land_position 0 0 is top-left, 100 100 bottom-right.

Map size (squares) Nodes Scale factor Condition
8 x 8 81 0.81 TINY_MAP
10 x 10 121 1.21 SMALL_MAP
12 x 12 169 1.69 MEDIUM_MAP
16 x 16 289 2.89 LARGE_MAP
20 x 20 441 4.41 HUGE_MAP
24 x 24 625 6.25 GIGANTIC_MAP
32 x 32 1089 10.89 MAPSIZE_GIANT

On a 16 x 16 map, land_percent 10 is about 29 nodes. base_size 1 is a 3 x 3 block, 2 is 5 x 5, 3 (the default) is 7 x 7: keep base_size at 0 to 2. set_scaling_to_map_size on objects multiplies by 26.2 on a 16 x 16 map and 6.6 on an 8 x 8 map, so keep scaled counts small (number_of_groups 0.5).

4. How a script runs

Lands fill the map with base_terrain, then every land claims its base_size block and all grow together until full; later lands paint over earlier ones. Then elevation hills are set aside, cliffs are drawn, terrains grow in script order (stamps set aside), connections repaint paths, objects are placed, and finally every square is drawn with a tileset piece and the set-aside stamps are placed.

  • <OBJECTS_GENERATION> replaces every feature on the map. Player lands or START_POSITION replace the start positions.
  • Trees on slopes, and metal or vents on uneven ground, are removed afterwards.
  • Painting is smart: a GREENWORLD_BASE-194 plateau in GREENWORLD_BASE-0 water gets a sea cliff, and ICE_BASE-145 in ICE_BASE-0 gets an ICE_BASE-60 ring. You don't write those rings.

5. Syntax and preprocessor

  • Words are split at whitespace; { and } are always separate words.
  • Sections: <PLAYER_SETUP>, <LAND_GENERATION>, <ELEVATION_GENERATION>, <CLIFF_GENERATION>, <TERRAIN_GENERATION>, <CONNECTION_GENERATION>, <OBJECTS_GENERATION>. Commands belong to the last header. A header may repeat.
  • Command and attribute names are lower case and exact. Terrain and object names are not case sensitive; write them in capitals.
  • A repeated attribute: the later wins, except replace_terrain, terrain_cost, terrain_size and spacing_to_specific_terrain, which repeat to list several. Blocks cannot nest.
  • /* comment */ may span lines and nest.
  • #define NAME makes NAME true for if. #const NAME value defines a constant usable anywhere, including math. There are no built-in constants.
  • if NAME / elseif NAME / else / endif: one name, no operators; nestable; may wrap whole commands or single attributes.
  • start_random / percent_chance N / end_random: one roll of 0 to 99; each branch takes the next slice. Under 100 in total can mean no branch.
  • rnd(min,max): random whole number, inclusive, no spaces.
  • Math: + - * / % with spaces, strictly left to right ((2 + 3 * 4) is 20), divide by zero gives 0, whole-number attributes drop the fraction.
  • #include and #include_drs are not supported.

6. Conditions for if

  • Always true: RANDOM_MAP, GALAXY_EDITOR, DE_AVAILABLE, 0_TEAM_GAME (there are no teams).
  • Players: 1_PLAYER_GAME ... 10_PLAYER_GAME.
  • Map size, from the larger side in squares (only one is true): TINY_MAP/MAPSIZE_TINY up to 8; SMALL_MAP/MAPSIZE_SMALL 9 to 10; MEDIUM_MAP/MAPSIZE_MEDIUM 11 to 12; LARGE_MAP/MAPSIZE_NORMAL 13 to 16; HUGE_MAP/MAPSIZE_LARGE 17 to 20; GIGANTIC_MAP/MAPSIZE_HUGE 21 to 24; MAPSIZE_GIANT 25 to 32; LUDIKRIS_MAP/MAPSIZE_LUDICROUS over 32. For "this size or bigger", use an if/elseif chain.

7. Sections and commands

Defaults are in parentheses. "Skipped" names are accepted with a message and do nothing.

<PLAYER_SETUP>

random_placement (player lands go around a circle in random order) or direct_placement (player lands with land_position go exactly there). behavior_version N (any section): with 1 or more, a land's number_of_tiles is its total size instead of being added to the base. Accepted and ignored: grouped_by_team, nomad_resources, force_nomad_treaty, override_map_size, set_gaia_civilization, water_definition, ai_info_map_type, effect_amount, effect_percent, guard_state, terrain_state, weather_type.

<LAND_GENERATION>

base_terrain T fills the map first (GREENWORLD_BASE-60 if missing; usually a water). create_player_lands { } makes one land per player, sharing its size. create_land { } makes one land. base_layer, enable_waves are skipped. Land attributes:

  • terrain_type T (GREENWORLD_BASE-60).
  • land_percent N (100): percent of all nodes; for player lands, the total for all players.
  • number_of_tiles N: size in nodes instead; whichever of the two comes last wins.
  • base_size R (3): block the land always claims: 0 is 1 node, 1 is 3 x 3, 2 is 5 x 5.
  • set_circular_base: rounds the base; only when base_size is over 3.
  • land_position X Y (random): origin in percent. Always for other lands; for player lands only with direct_placement.
  • left_border, right_border, top_border, bottom_border N (0): keep N percent from that edge.
  • border_fuzziness N (20): 0 ignores borders, 100 holds them exactly.
  • clumping_factor N (8): higher (to about 30) is rounder, lower is ragged, negative snakes.
  • generate_mode 1: lets random origins go into corners.
  • circle_radius R [V]: player circle radius in percent of width, and variance (default 36% of the bordered area, 20% variance).
  • zone N: each player land has its own zone; all other lands share zone -10. Same-zone lands may merge. set_zone_randomly mixes player zones; set_zone_by_team keeps one zone per player.
  • other_zone_avoidance_distance N (0): N nodes of base_terrain between this land and other zones' lands; both lands need it, the smaller is used. This is how you make islands.
  • min_placement_distance N: minimum nodes from earlier lands' origins.
  • assign_to_player N or assign_to 0 N 0 0: land belongs to player N; skipped with fewer players.
  • land_id N: target for place_on_specific_land_id N.
  • Skipped: base_elevation, land_conformity, base_layer.

Player lands sit evenly around a circle; other lands start at a random node inside their borders, clear of earlier lands and out of the corners (or the map centre with a message if there's no room). A start position is placed at each player land's origin unless a START_POSITION object says otherwise.

<ELEVATION_GENERATION>

create_elevation N { base_terrain T number_of_clumps N } scatters the hill stamps of a ground. base_terrain is required. N below 4 uses only small hills (8 x 8 tiles or less); 4 or more also uses bigger ones. Other attributes: set_scale_by_size or set_scale_by_groups (count × scale factor), set_avoid_player_start_areas [N] (by default hills stay about a ninth of the map from player origins), spacing_to_other_terrain_types N.

  • Any N works: GREENWORLD_BASE-60, LAVA_BASE-61, LUSH_BASE-52, ICE_BASE-60, MARS_BASE-60, ARCHIPELAGO_BASE-53, EVERGREEN_BASE-60, EVERGREEN2_BASE-60.
  • N must be 4 or more: DESERT_BASE-55, ACID_BASE-60, CRYSTAL_BASE-60, ARCHIPELAGO_BASE-169.

<CLIFF_GENERATION>

One number each, no block: min_number_of_cliffs (3), max_number_of_cliffs (8) (count × scale factor), min_length_of_cliff (2), max_length_of_cliff (4) in nodes, cliff_curliness (36, percent), min_distance_cliffs (2), min_terrain_distance (1). cliff_type is skipped. Cliffs avoid player origins and the map edge. A cliff raises the ground it starts on to:

  • GREENWORLD_BASE-60 → GREENWORLD_BASE-194
  • LAVA_BASE-61 → LAVA_BASE-165; LAVA_BASE-51 → LAVA_BASE-61
  • LUSH_BASE-52 → LUSH_BASE-158
  • MARS_BASE-60 → MARS_BASE-230
  • ICE_BASE-60 → ICE_BASE-145
  • METAL_BASE-60 → METAL_BASE-114; METAL_BASE-114 → METAL_BASE-230
  • DESERT_BASE-55 → DESERT_BASE-130; DESERT_BASE-130 → DESERT_BASE-205
  • ARCHIPELAGO_BASE-53 → ARCHIPELAGO_BASE-169
  • EVERGREEN_BASE-60 → EVERGREEN_BASE-165; EVERGREEN_BASE-165 → EVERGREEN_BASE-230; EVERGREEN_BASE-0 → EVERGREEN_BASE-165 (sea stack)
  • EVERGREEN2_BASE-60 → EVERGREEN2_BASE-165; EVERGREEN2_BASE-165 → EVERGREEN2_BASE-230
  • SNOWYEVERGREEN_BASE-60 → SNOWYEVERGREEN_BASE-164; SNOWYEVERGREEN_BASE-164 → SNOWYEVERGREEN_BASE-230; SNOWYEVERGREEN_BASE-50 → SNOWYEVERGREEN_BASE-164; SNOWYEVERGREEN_BASE-0 → SNOWYEVERGREEN_BASE-164 (sea stack)

Acid, Crystal, Quagmire, shallows and most waters get no cliffs.

<TERRAIN_GENERATION>

create_terrain T { } grows clumps of terrain T over existing ground, in script order (write the outer patch first for patches inside patches). Attributes:

  • base_terrain T (any): only grow over this ground.
  • land_percent N or number_of_tiles N (0.85% of nodes): total size; the last one wins.
  • number_of_clumps N (1): split into this many clumps.
  • set_scale_by_size (total × scale factor) or set_scale_by_groups (total and clumps × scale factor).
  • spacing_to_other_terrain_types N (0): stay N nodes from any other ground. Use 1 for clean patches.
  • spacing_to_specific_terrain T N: stay N from T; repeatable.
  • set_avoid_player_start_areas [N]: without N, about a ninth of the map.
  • clumping_factor N (20).
  • Skipped: height_limits, set_flat_terrain_only, beach_terrain, terrain_mask, base_layer.

With a stamp name (Section 9) as T: places whole pieces on flat squares of the stamp's own ground. number_of_clumps N is the piece count; land_percent/number_of_tiles (squares) instead set an area; scaling multiplies; spacing_to_other_terrain_types N keeps N squares of the same ground around each piece; base_terrain, if given, must be the stamp's own ground. Pieces never overlap. If too many are asked for, it places what fits.

<CONNECTION_GENERATION>

Finds the cheapest path between land origins and repaints terrain along it (fords, land bridges). Commands: create_connect_all_players_land { }, create_connect_all_lands { }, create_connect_same_land_zones { } (same as all lands), create_connect_land_zones Z1 Z2 { }, create_connect_to_nonplayer_land { }, and accumulate_connections (no block; later connections see earlier changes). create_connect_teams_lands connects nothing. Attributes:

  • terrain_cost T N (1): cost to cross T; 0 is impassable; cliff ridges cost 25 unless priced.
  • replace_terrain FROM TO: along the path; repeatable.
  • default_terrain_replacement TO: everything along the path becomes TO; cancels earlier replace_terrain lines.
  • terrain_size T R V: path width over T, radius R ± random V (default radius 1; 0 changes only path nodes).

<OBJECTS_GENERATION>

create_object NAME { }. NAME is START_POSITION, a kind, a world kind or an exact feature name (Section 11). Distances are feature cells (32 to a square). Attributes:

  • number_of_objects N (1): total, or per group with number_of_groups.
  • number_of_groups N: N groups; may be a fraction before scaling (0.5). group_variance N (0).
  • group_placement_radius N (3). set_tight_grouping (grows member to neighbour: groves) or set_loose_grouping (default).
  • set_scaling_to_map_size (× 26.2 on 16 x 16), set_scaling_to_player_number (× players).
  • set_place_for_every_player: repeat per player, distances from that player; without max_distance_to_players, stays on that player's land.
  • min_distance_to_players N, max_distance_to_players N.
  • terrain_to_place_on T (any dry flat ground). The only way to place in water, and only with an underwater feature.
  • place_on_specific_land_id N.
  • min_distance_group_placement N (0): from every object already placed. temp_min_distance_group_placement N (0): from this command's own groups.
  • min_distance_to_map_edge N (0). avoid_cliff_zone [N] (4 if no N): stay N from coast, cliff or blend squares.
  • Skipped: layer_to_place_on, avoid_forest_zone, find_closest, resource_delta, second_object, generate_for_first_land_only. No effect: set_gaia_object_only, set_gaia_unconvertible, make_indestructible.

8. Terrain names

Format WORLD_BASE-HEIGHT. "Liquid" grounds get no dry-land features. Worlds may be mixed in one script.

  • GreenWorld: GREENWORLD_BASE-0 deep water (liquid), GREENWORLD_BASE-43 shallow water (liquid), GREENWORLD_BASE-60 grass plain, GREENWORLD_BASE-194 high grass plateau.
  • Lava: LAVA_BASE-16 molten lava sea (liquid), LAVA_BASE-51 cracked low ground, LAVA_BASE-61 rock plain, LAVA_BASE-165 high rock plateau.
  • Mars: MARS_BASE-0 water (liquid), MARS_BASE-60 red plain, MARS_BASE-230 high red mesa.
  • Ice: ICE_BASE-0 icy water (liquid), ICE_BASE-60 snow and ice plain, ICE_BASE-145 ice plateau.
  • Crystal: CRYSTAL_BASE-0 water (liquid), CRYSTAL_BASE-60 crystal plain.
  • Acid: ACID_BASE-0 acid sea (liquid), ACID_BASE-60 acid plain.
  • Archipelago: ARCHIPELAGO_BASE-0 deep sea (liquid), ARCHIPELAGO_BASE-43 shallows (liquid), ARCHIPELAGO_BASE-53 sand, ARCHIPELAGO_BASE-169 high rocky ground.
  • Lush: LUSH_BASE-7 swampy water (liquid), LUSH_BASE-52 jungle floor, LUSH_BASE-158 jungle highland, LUSH_BASE-230 jungle peak plateau.
  • Desert: DESERT_BASE-0 water (liquid), DESERT_BASE-43 shallows/oasis (liquid), DESERT_BASE-55 sand plain, DESERT_BASE-130 mesa, DESERT_BASE-205 high mesa.
  • Metal: METAL_BASE-0 water (liquid), METAL_BASE-43 shallows (liquid), METAL_BASE-60 metal plating, METAL_BASE-114 raised plating, METAL_BASE-194 high plating, METAL_BASE-230 top plating.
  • Metal2 (darker water): METAL2_BASE-0 dark water (liquid), METAL2_BASE-43 dark shallows (liquid).
  • Evergreen: EVERGREEN_BASE-0 water (liquid), EVERGREEN_BASE-40 shallows (liquid), EVERGREEN_BASE-60 forest grass, EVERGREEN_BASE-165 plateau, EVERGREEN_BASE-230 high plateau.
  • Evergreen2 (no water of its own): EVERGREEN2_BASE-60 second grass, EVERGREEN2_BASE-165 plateau, EVERGREEN2_BASE-230 high plateau.
  • SnowyEvergreen: SNOWYEVERGREEN_BASE-0 water (liquid), SNOWYEVERGREEN_BASE-40 shallows (liquid), SNOWYEVERGREEN_BASE-50 frozen water (liquid), SNOWYEVERGREEN_BASE-60 snow, SNOWYEVERGREEN_BASE-164 snow plateau, SNOWYEVERGREEN_BASE-230 snow peak plateau.
  • Quagmire: QUAGMIRE_BASE-0 water (liquid), QUAGMIRE_BASE-60 bog ground.
  • WaterWorld: WATERWORLD_BASE-0 open water (liquid), WATERWORLD_BASE-1 sea floor, WATERWORLD_BASE-45 reef shallows (both count as dry ground for features).

(GREENWORLD_BASE-43 after a full name means the same world prefix: GREENWORLD_BASE-43.)

9. Stamps (use as create_terrain argument)

Each goes only on flat squares of the ground shown. create_elevation uses the HILL stamps.

  • On GREENWORLD_BASE-60: GREENWORLD_HILL-60_8X8, GREENWORLD_HILL-60_16X16, GREENWORLD_ROUGH-60, GREENWORLD_MOUNTAINS-60 (big mountains and craters), GREENWORLD_POOL_SMALL. On GREENWORLD_BASE-0: GREENWORLD_ISLAND_8X8.
  • On LAVA_BASE-61: LAVA_HILL-61_8X8, LAVA_HILL-61_16X16, LAVA_POOL-61_8X8, LAVA_POOL-61_16X16, LAVA_POOL-61_32X32. On LAVA_BASE-16: LAVA_ISLAND_48X48 (3 x 3 squares).
  • On MARS_BASE-60: MARS_HILLS-60_8X8, MARS_POOL-60_8X8, MARS_POOL-60_16X16, MARS_ROUGH-60_16X16, MARS_FEATURE-60. On MARS_BASE-0: MARS_ISLAND-0_8X8, MARS_ISLAND-0_16X16, MARS_ISLAND-0_32X32.
  • On ICE_BASE-60: ICE_HILLS-60_8X8, ICE_HILLS-60_16X16, ICE_POOLS-60. On ICE_BASE-0: ICE_ISLAND-0_8X8, ICE_ISLAND-0_16X16.
  • On CRYSTAL_BASE-60: CRYSTAL_CRATER-60_8X8, CRYSTAL_CRATER-60_16X16, CRYSTAL_HILLS-60_16X16, CRYSTAL_HILLS-60_32X32, CRYSTAL_POND-60, CRYSTAL_ROUGH-60. On CRYSTAL_BASE-0: CRYSTAL_ISLAND-60_16X16, CRYSTAL_ISLAND-60_32X32, CRYSTAL_REEF-60_16X16, CRYSTAL_REEF-60_32X32.
  • On ACID_BASE-60: ACID_POOLS-60, ACID_HILLS-60_16X16, ACID_MOUNDS-60_16X16, ACID_PUDDLES-60_16X16, ACID_TRAILS-60_16X16. On ACID_BASE-0: ACID_ACID-0_16X16, ACID_ISLANDS-0_16X16, ACID_ISLANDS-0_32X32.
  • On ARCHIPELAGO_BASE-53: ARCHIPELAGO_HILLS-53_8X8, ARCHIPELAGO_HILLS-53_16X16. On ARCHIPELAGO_BASE-169: ARCHIPELAGO_HILL-169_16X16. On ARCHIPELAGO_BASE-0: ARCHIPELAGO_ISLAND-0_8X8, ARCHIPELAGO_ROCKY-0_8X8, ARCHIPELAGO_ISLAND-0_MEDIUM, ARCHIPELAGO_ISLAND-0_LARGE.
  • On LUSH_BASE-52: LUSH_POOLS_8X8, LUSH_HILL-52_8X8, LUSH_HILL-52_16X16, LUSH_SWAMP-52, LUSH_POND-52_16X16. On LUSH_BASE-230: LUSH_FEATURE-230. On LUSH_BASE-7: LUSH_ISLAND-7_16X16.
  • On DESERT_BASE-55: DESERT_HUGE-HILL-55, DESERT_HILL-55_16X16, DESERT_PLATEAUS-55, DESERT_ROUGHS-55_8X8.
  • On WATERWORLD_BASE-0: WATERWORLD_ARM-60_MEDIUM, WATERWORLD_ARM-60_LARGE. On WATERWORLD_BASE-1: WATERWORLD_BASE-1_MISC_16X16.
  • On EVERGREEN_BASE-60: EVERGREEN_HILL, EVERGREEN_HILL_LARGE, EVERGREEN_POOL. On EVERGREEN_BASE-0: EVERGREEN_ISLAND, EVERGREEN_ISLAND_LARGE.
  • On EVERGREEN2_BASE-60: EVERGREEN2_HILL, EVERGREEN2_HILL_LARGE, EVERGREEN2_POOL.

Not usable from scripts: rivers, ridges, slopes, bridges, Lush's Horizontal/Vertical Mtn, WaterWorld's Horizontal/Vertical Reef, Desert's Dunes.

10. Which terrains can touch

Inside one world, these pairs join directly; any other pair in the same world is joined through the grounds in between automatically:

  • GreenWorld: 0—43, 0—60, 0—194, 43—60, 43—194, 60—194.
  • Lava: 16—61, 51—61, 61—165. Mars: 0—60, 60—230. Ice: 0—60, 60—145. Crystal, Acid, Quagmire: 0—60.
  • Archipelago: 0—43, 0—53, 43—53, 53—169. Lush: 7—52, 52—158, 52—230.
  • Desert: 0—43, 0—55, 43—55, 55—130, 130—205.
  • Metal: 0—43, 0—60, 43—60, 60—114, 60—194, 114—230. Metal2: 0—43; METAL2_BASE-0 joins METAL_BASE-60 and METAL_BASE-114; METAL2_BASE-43 joins METAL_BASE-60.
  • Evergreen: 0—40, 0—60, 0—165, 40—60, 60—165, 165—230. Evergreen2: 60—165, 165—230, and uses Evergreen's water (EVERGREEN_BASE-0 and EVERGREEN_BASE-40 join EVERGREEN2_BASE-60; EVERGREEN_BASE-0 joins EVERGREEN2_BASE-165; EVERGREEN_BASE-60 joins EVERGREEN2_BASE-60 and EVERGREEN2_BASE-165).
  • SnowyEvergreen: 0—40, 0—60, 0—164, 40—60, 50—60, 50—164, 60—164, 164—230.
  • WaterWorld: 0—1 and 0—45 only (no dry land).

Between worlds:

  • Waters: the Base-0 waters of GreenWorld, Mars, Ice, Crystal, Acid, Archipelago, Desert, Metal, Metal2, Evergreen, Quagmire, SnowyEvergreen and WaterWorld blend with each other, except GreenWorld–Ice, GreenWorld–Metal, Ice–Metal, Archipelago–Desert, and SnowyEvergreen with anything but WaterWorld. LUSH_BASE-7 blends with all of them except SnowyEvergreen's. LAVA_BASE-16 blends with no water but joins METAL_BASE-60 by a lava coast.
  • Plains: GREENWORLD_BASE-60, MARS_BASE-60, ICE_BASE-60, CRYSTAL_BASE-60, ACID_BASE-60, METAL_BASE-60, QUAGMIRE_BASE-60, EVERGREEN_BASE-60, EVERGREEN2_BASE-60, SNOWYEVERGREEN_BASE-60, LAVA_BASE-61, LUSH_BASE-52, ARCHIPELAGO_BASE-53, DESERT_BASE-55 blend with each other, except QUAGMIRE_BASE-60 with DESERT_BASE-55, LUSH_BASE-52, ARCHIPELAGO_BASE-53 or LAVA_BASE-61. (Against Archipelago or Lava it gets a ring of water; put a plain both blend with, such as GREENWORLD_BASE-60, between them to avoid that.)
  • Plateaus, shallows and cliffs never cross worlds. A plain beside another world's water joins through its own world's water first.

11. Objects

  • START_POSITION (or TOWN_CENTER): one commander start per player. Use set_place_for_every_player and max_distance_to_players 0 to put each on its player land's origin. Needs a 6 x 6 feature-cell patch of flat dry empty ground. Only the first START_POSITION command counts.
  • Kinds (pick features that suit the ground under each spot): TREES, PALMS, ROCKS, PLANTS, SHRUBS, FOLIAGE, FRONDS, VINES, ICECHUNKS (Ice), LAVA_NODES (Lava), LAVA_SPIRES (Lava), METAL_TOWERS (Metal), PIPES (Metal), CRYSTAL_SPIRES (Crystal), SPIRES, METAL_NODES (metal deposits: the resource players mine), GEO_VENTS (geothermal vents: the energy resource).
  • World kinds: a world word before a kind, e.g. ARCHIPELAGO_PALMS or LUSH_TREES, uses only that world's features on any dry ground. Words: GREENWORLD, LAVA, MARS, ICE, METAL, DESERT, ARCHIPELAGO, LUSH, ACID, CRYSTAL, or a TDF world name in capitals such as EVERGREEN.
  • Exact TA feature names (not case sensitive), e.g. AERATION01S, Tower04Scar, RockMetal1, Tree1.
  • Underwater: features named like aqua, coral, kelp, seaweed, underwater, uw... go only on liquid ground named by terrain_to_place_on. METAL_NODES with terrain_to_place_on GREENWORLD_BASE-43 gives underwater metal.
  • Desert has no trees of its own; TREES there gives Archipelago trees. At most one tree per map tile. Metal and vents are removed from uneven ground.

Typical per-player resources:

create_object METAL_NODES {
  number_of_objects 4
  set_place_for_every_player
  min_distance_to_players 10
  max_distance_to_players 26
  temp_min_distance_group_placement 6
}
create_object GEO_VENTS {
  number_of_objects 1
  set_place_for_every_player
  min_distance_to_players 12
  max_distance_to_players 32
}

Forest groves: TREES with number_of_objects 40, number_of_groups 0.4, set_tight_grouping, group_placement_radius 12, set_scaling_to_map_size (about 10 groves on 16 x 16); add min_distance_to_players 16 to keep starts clear.

12. Design advice and mistakes

  • Think in squares. On 16 x 16 (17 x 17 nodes), a player island of 10 to 15 nodes is plenty; a central continent of 30 to 60 nodes is big.
  • Islands: water base_terrain, create_player_lands with other_zone_avoidance_distance 1 or 2, borders of 5 to 10.
  • One continent: set_zone_randomly, one shared zone, or avoidance 0.
  • Plateaus: create_terrain GREENWORLD_BASE-194 { base_terrain GREENWORLD_BASE-60 spacing_to_other_terrain_types 1 }. Lakes: GREENWORLD_BASE-43 or GREENWORLD_BASE-0 on GREENWORLD_BASE-60. Shallows at sea: GREENWORLD_BASE-43 on GREENWORLD_BASE-0.
  • Don't use AoE2 terrains (GRASS, WATER, DESERT, FOREST; trees are objects), AoE2 objects (GOLD, STONE, FORAGE, DEER, SCOUT, VILLAGER), AoE2-sized numbers (base_size 15, number_of_tiles 900), old heights (_BASE-85, _BASE-219, _BASE-27; use _BASE-60, _BASE-194, _BASE-7), a plateau of one world on another world's ground, /*comments*/ without spaces, rnd( 1, 5 ) with spaces, or if comparisons.

13. Complete example: GreenWorld islands with fords

2 to 8 players, best on 12 x 12 or larger. Paste into the Random Map Generator and press Generate. More examples (desert land map, mixed worlds) are in the full reference.

/* Green Isles: every player on a grass island, joined by shallow fords. */

<PLAYER_SETUP>
random_placement

<LAND_GENERATION>
base_terrain GREENWORLD_BASE-0

create_player_lands {
  terrain_type GREENWORLD_BASE-60
  land_percent 40
  if TINY_MAP
    base_size 0
  else
    base_size 1
  endif
  left_border 8
  right_border 8
  top_border 8
  bottom_border 8
  border_fuzziness 40
  clumping_factor 15
  other_zone_avoidance_distance 2
}

/* A neutral island in the middle with extra metal. */
create_land {
  terrain_type GREENWORLD_BASE-60
  land_position 50 50
  land_percent 4
  base_size 1
  other_zone_avoidance_distance 2
  zone 50
  land_id 7
}

<ELEVATION_GENERATION>
create_elevation 2 {
  base_terrain GREENWORLD_BASE-60
  number_of_clumps 2
  set_scale_by_groups
}

<TERRAIN_GENERATION>
/* Shallows scattered at sea. */
create_terrain GREENWORLD_BASE-43 {
  base_terrain GREENWORLD_BASE-0
  land_percent 6
  number_of_clumps 4
  spacing_to_other_terrain_types 1
}
/* Lava-coloured dirt patches inland. */
create_terrain QUAGMIRE_BASE-60 {
  base_terrain GREENWORLD_BASE-60
  land_percent 2
  number_of_clumps 3
  spacing_to_other_terrain_types 1
  set_avoid_player_start_areas 1
}
/* A few small ponds. */
create_terrain GREENWORLD_POOL_SMALL {
  number_of_clumps 2
  set_scale_by_size
}

<CONNECTION_GENERATION>
create_connect_all_players_land {
  replace_terrain GREENWORLD_BASE-0 GREENWORLD_BASE-43
  terrain_cost GREENWORLD_BASE-0 4
  terrain_cost GREENWORLD_BASE-43 1
  terrain_size GREENWORLD_BASE-0 0 0
}

<OBJECTS_GENERATION>
create_object START_POSITION {
  set_place_for_every_player
  max_distance_to_players 0
}
create_object METAL_NODES {
  number_of_objects 4
  set_place_for_every_player
  min_distance_to_players 10
  max_distance_to_players 28
  temp_min_distance_group_placement 6
}
create_object GEO_VENTS {
  number_of_objects 1
  set_place_for_every_player
  min_distance_to_players 12
  max_distance_to_players 32
}
create_object METAL_NODES {
  number_of_objects 6
  place_on_specific_land_id 7
  temp_min_distance_group_placement 5
}
create_object METAL_NODES {
  number_of_objects 3
  terrain_to_place_on GREENWORLD_BASE-43
  set_scaling_to_player_number
}
create_object TREES {
  number_of_objects 30
  number_of_groups 0.4
  group_placement_radius 10
  set_tight_grouping
  set_scaling_to_map_size
  terrain_to_place_on GREENWORLD_BASE-60
  min_distance_to_players 16
}
create_object ROCKS {
  number_of_objects 3
  number_of_groups 1
  set_scaling_to_map_size
  min_distance_to_players 12
}