DocsMegalithGetting started

Your first mode

Every living player earns a point a second, a HUD row counts the seconds, and the round ends after a minute. All it takes is the game and a text editor, such as Notepad, TextEdit or Visual Studio Code.

  1. Open your Game Modes folderIn Host Game, choose Game Type, then Open Folder. It's in your player folder:
    SystemGame Modes folder
    Windows%LOCALAPPDATA%\ProjectReclaimer\Game Modes
    macOS~/Library/Application Support/ProjectReclaimer/Game Modes
    Linux~/.local/share/ProjectReclaimer/Game Modes (or under $XDG_DATA_HOME)
  2. Make the fileSave this as my-first-mode.rmeg in that folder, as plain UTF-8 text, or download it as megalo-timed-score.rmeg. Keep the extension: a file ending in .rmeg.txt is a different file.
    my-first-mode.rmeg
    -- Every living player earns a point a second; the round ends after a minute.
    --[=[ mode
    name = "My First Mode"
    ]=]
    
    alias interval = global.timer[0]
    alias elapsed = global.number[0]
    declare interval = 1
    
    on init: do
       interval.set_rate(-100%)
    end
    
    if interval.is_zero() then
       for each player do
          if current_player.is_not_respawning() then
             current_player.score += 1
          end
       end
       elapsed += 1
       interval.reset()
       interval.set_rate(-100%)
    end
    
    script_widget[0].set_text("Elapsed: %n", elapsed)
    script_widget[0].set_visibility(all_players, true)
    
    if elapsed >= 60 then
       game.end_round()
    end
  3. Choose itIn the game type picker, choose Refresh, select the Megalith card after the game types and click My First Mode. It's also among the variants of Slayer, the game type it plays. If the lobby runs a playlist, set Playlist to Off.
  4. Play itPick a multiplayer map and choose Start Game. While you're alive you earn a point a second, the HUD row counts up, and the round ends after a minute of play.
The game type picker, with a card for each game type and a Megalith card after them
The game type picker: every .rmeg in Game Modes is on the Megalith card.

Here's what you wrote. The block from --[=[ mode to ]=] is the mode header; all this one does is name the mode. What it leaves out keeps the default: Slayer, with no points per kill and no score limit. alias gives timer 0 and number 0 of the round names, and declare starts the timer at one second. on init runs once when the round starts, and sets the timer counting down. Everything outside it runs on every tick of the game: when the timer reaches zero, every living player scores, the count goes up and the timer starts again.

If the mode isn't listed, the file has a mistake: check it.