Skip to content

Built-in variables

Read-only engine globals that appear in conditions and set operands without a variables declaration. Writable overrides for the game-option entries use the same names inside game_options override lines.

Names match e_custom_variable_type indices 13–43 in @blamnetwork/blf. ManagedMegalo resolves them in c_custom_variable_reference (Reach).

NameType
roundintegerYesYesYes
symmetry_unusedbooleanYesYesYes
symmetric_gametypebooleanYesYesYes
score_to_win_roundintegerYesYesYes
fire_teams_enabledbooleanYesYesYes
teams_enabledbooleanYesYesYes
round_time_limitintegerYesYesYes
round_countintegerYesYesYes
perfection_enabledbooleanYesYesYes
early_victory_win_countintegerYesYesYes
sudden_death_time_limitintegerYesYesYes
grace_period_time_limitintegerYesYesYes
lives_per_roundintegerYesYesYes
team_lives_per_roundintegerYesYesYes
respawn_timeintegerYesYesYes
suicide_respawn_penaltyintegerYesYesYes
betrayal_respawn_penaltyintegerYesYesYes
respawn_time_growthintegerYesYesYes
loadout_selection_timeintegerYesYesYes
respawn_traits_durationintegerYesYesYes
friendly_fire_enabledbooleanYesYesYes
betrayal_booting_enabledbooleanYesYesYes
enemy_voice_enabledbooleanYesYesYes
open_channel_voice_enabledbooleanYesYesYes
dead_player_voice_enabledbooleanYesYesYes
grenades_on_mapbooleanYesYesYes
indestructible_vehiclesbooleanYesYesYes
red_powerup_durationintegerYesYesYes
blue_powerup_durationintegerYesYesYes
yellow_powerup_durationintegerYesYesYes
object_death_damage_typeintegerYesYesYes

Notes

The Type column describes the numeric or boolean value read from each global. Entries from score_to_win_round through yellow_powerup_duration mirror Game options overrides — the same name can be read in conditions and written with override.

round — current round index. Megalo scripts spell this identifier round_index (e_custom_variable_type.round in blf).

symmetry_unused — internal wire type only. Not a Megalo identifier. ManagedMegalo uses this type when reading symmetric_gametype outside pregame triggers.

symmetric_gametype — whether the gametype is symmetric. Readable everywhere; writable with set inside pregame triggers only (HREK invasion scripts toggle it at match start).

object_death_damage_type — damage type index for the current object_death trigger. Integer comparisons only (for example greater_than 34). Only valid inside object_death trigger bodies.

Example

megalo
condition if score_to_win_round not_equal_to 0
condition if teams_enabled equal_to 1
condition if round_time_limit greater_than 0
action set symmetric_gametype set_to 0
megalo
trigger object_death
	condition if object_death_damage_type greater_than 34
	condition if object_death_damage_type less_than 56
end

See also