game_options
Lobby-facing options and engine overrides. Child elements control built-in engine settings, custom lobby options, and player trait presets.
game_options
override score_to_win_round 25
override teams_enabled true
override loadout_palette spartan_tier1 slayer_loadouts
endoverride
Sets a built-in engine option to a new default. Built-in options can vary by megalo version — see Game options for the full list.
game_options
override score_to_win_round 25
override teams_enabled true
endlock override
Sets a default and prevents the lobby from changing it:
game_options
lock override teams_enabled true
endoption
Declares a custom discrete-choice lobby option. After the option name come name/description string symbols, the default value, then value/label pairs:
game_options
option kill_points
option_name_kill_points
option_description_kill_points
1
-1 neg_points_1 ""
0 points_0 ""
1 points_1 ""
end
endranged_option
Declares a numeric lobby option with min/max bounds. It can use a block or a single-line form:
game_options
ranged_option float_time
option_name_float_time
option_description_float_time
7
3
16
end
ranged_option kill_points option_name_kill_points option_description_kill_points 1 -10 10 end
endlock option and hide option
Pin or conceal an option while still declaring its full definition (used heavily in Invasion map variants):
game_options
lock option phase_2_objective
option_name_phase_2_objective
option_description_objective
k_gametype_territories
k_gametype_ctf option_ctf ""
end
hide option hidden_gametype
option_hidden_gametype
""
0
0 hidden_slayer ""
1 hidden_classic ""
end
endplayer_traits
Defines a named trait set selectable in the lobby. See player_traits.
weapon_set and vehicle_set
Restrict weapons or vehicles using presets from weapon_sets.txt and vehicle_sets.txt. Accepts sentinel tokens or a named preset:
game_options
override weapon_set default
override vehicle_set no_vehicles
endSee Weapon Set and Vehicle Set for full preset tables.
Limits
A script may declare at most 16 custom lobby options (option / ranged_option) and 16 player trait sets.
Base-derived scripts
game_options can appear in base-derived scripts to override inherited options. See Base files — Retuning options.