DocsMegalithGame modes

Change a mode

The quickest start is a copy of a mode that works. This makes a slower Growth, where a kill adds half of your victim's size instead of all of it.

  1. Open the Game Modes folderIn Host Game, choose Game Type and then Open Folder. The bundled modes are in its Project Reclaimer folder.
  2. Copy GrowthCopy Project Reclaimer/growth.rmeg into Game Modes itself and rename the copy my-growth.rmeg. Leave the original alone: the game puts back any bundled mode that's missing, but never overwrites one you changed.
  3. Rename itOpen my-growth.rmeg in a text editor. Change name = "Growth" to name = "My Growth". That's the name the picker shows.
  4. Change the rewardFind killer.size += current_player.size and halve what it adds. Numbers in Megalith are whole, so a half rounds down:
    Part of my-growth.rmeg
    killer.size += current_player.size / 2
    Save the file.
  5. Play itIn the game type picker, choose Refresh. My Growth is on the Megalith card. Select it and start a game with at least one other player.

After every change to the file, choose Refresh and select the mode again: the lobby keeps the copy it loaded, and a round that's running keeps its script until it ends. While you host on this PC alone, the Megalith console reads the file again in the running game: type /megalith reload in the chat line.

If the mode isn't listed, the file has a mistake. mode-check says which line. For everything else, such as a new mode from nothing, classes, abilities or a HUD of your own, go to the Megalith guide, a tutorial first and the full reference after it.