|
Ground of Aces Modding
|
Missions.get_mission_result_text
| mission_entity_id | Entity ID of the mission currently accessing the mission script |
String The localization key for the mission result text, or the text itself.
Event handler that returns the localization key used to display the mission result in the mission result window. It is called for every mission, with or without JSON, when the result window opens for a completed flight; a cancelled mission shows its own text and does not call it. A mission with JSON and no .py of its own gets this handler from default_mission.py, which returns the missions/<id>/…_transmission key matching the ending. A key of the form missions/<id>/<suffix> is resolved against the mission's _raw* fields as well, so a copied JSON mission with raw text works without registering terms.
⚠️ Localization key needs to be unique to avoid conflicts with other localization entries - prefix it with your mod's name ⚠️