Ground of Aces Scripting API
Get Threat Level

Mission.get_mission_name

Parameters

mission_entity_id Entity ID of the mission currently accessing the mission script

Returns

String The localization key for the mission threat level.

Description

Event handler that returns the localization key used to display the mission threat level in the mission info window. This event handler is invoked during the initialization of the mission.

# Set the localized term for mission_threat_level
localization.SetTerm("en", "mission_threat_level", "Difficult")
@event_handler(MissionEvent.GET_MISSION_DESCRIPTION)
def get_mission_description(mission_entity_id):
# Return the key for the localized mission threat level
return "mission_threat_level"

⚠️ Localization key needs to be unique to avoid conflicts with other localization entries ⚠️