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).
| Name | Type | |||
|---|---|---|---|---|
round | integer | Yes | Yes | Yes |
symmetry_unused | boolean | Yes | Yes | Yes |
symmetric_gametype | boolean | Yes | Yes | Yes |
score_to_win_round | integer | Yes | Yes | Yes |
fire_teams_enabled | boolean | Yes | Yes | Yes |
teams_enabled | boolean | Yes | Yes | Yes |
round_time_limit | integer | Yes | Yes | Yes |
round_count | integer | Yes | Yes | Yes |
perfection_enabled | boolean | Yes | Yes | Yes |
early_victory_win_count | integer | Yes | Yes | Yes |
sudden_death_time_limit | integer | Yes | Yes | Yes |
grace_period_time_limit | integer | Yes | Yes | Yes |
lives_per_round | integer | Yes | Yes | Yes |
team_lives_per_round | integer | Yes | Yes | Yes |
respawn_time | integer | Yes | Yes | Yes |
suicide_respawn_penalty | integer | Yes | Yes | Yes |
betrayal_respawn_penalty | integer | Yes | Yes | Yes |
respawn_time_growth | integer | Yes | Yes | Yes |
loadout_selection_time | integer | Yes | Yes | Yes |
respawn_traits_duration | integer | Yes | Yes | Yes |
friendly_fire_enabled | boolean | Yes | Yes | Yes |
betrayal_booting_enabled | boolean | Yes | Yes | Yes |
enemy_voice_enabled | boolean | Yes | Yes | Yes |
open_channel_voice_enabled | boolean | Yes | Yes | Yes |
dead_player_voice_enabled | boolean | Yes | Yes | Yes |
grenades_on_map | boolean | Yes | Yes | Yes |
indestructible_vehicles | boolean | Yes | Yes | Yes |
red_powerup_duration | integer | Yes | Yes | Yes |
blue_powerup_duration | integer | Yes | Yes | Yes |
yellow_powerup_duration | integer | Yes | Yes | Yes |
object_death_damage_type | integer | Yes | Yes | Yes |
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
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 0trigger object_death
condition if object_death_damage_type greater_than 34
condition if object_death_damage_type less_than 56
end