# Selected Mission Archive
Grammar — Current selected mission archive by player player
Flags —Native
|Function
Returns the mission archive that the specified player currently has selected.
# Arguments
int
— Player
Returns — int
<preset::MissionArchive>
native int BattleReportPanelGetSelectedBattleReport(
int inPlayer,
);
# Related
Category: Story / Mission Archives Panel
- Mission Archives Panel Exited —
void
— TriggerAddEventBattleReportPanelExit - Mission Archives Panel Play Mission —
void
— TriggerAddEventBattleReportPanelPlayMission - Mission Archive Panel Play Scene —
void
— TriggerAddEventBattleReportPanelPlayScene - Mission Archives Panel Selection Changed —
void
— TriggerAddEventBattleReportPanelSelectionChanged - Add Mission Archive —
void
— BattleReportCreate - Mission Archive Dialog Item —
int
<control> — BattleReportGetDialogControl - Last Created Mission Archive —
int
<preset::MissionArchive> — BattleReportLastCreated - Remove Mission Archive —
void
— BattleReportDestroy - Set Mission Archive Mission Text —
void
— BattleReportSetMissionText - Set Mission Archive Mission Image —
void
— BattleReportSetMissionImage - Set Mission Archive Scene Image —
void
— BattleReportSetSceneImage - Set Mission Archive Scene Text —
void
— BattleReportSetSceneText - Set Mission Archive Difficulty Best Time Text —
void
— BattleReportSetDifficultyLevelBestTimeText - Set Mission Archive Difficulty Completed —
void
— BattleReportSetDifficultyLevelCompleted - Add Mission Archive Achievement —
void
— BattleReportAddAchievement - Set Mission Archive Best Time Text —
void
— BattleReportSetBestTimeText - Set Mission Archive Research Title —
void
— BattleReportSetResearchTitle - Set Mission Archive Research Text —
void
— BattleReportSetResearchText - Set Mission Archive Bonus Title —
void
— BattleReportSetBonusTitle - Set Mission Archive Bonus Text —
void
— BattleReportSetBonusText - Set Mission Archive Button Text —
void
— BattleReportSetButtonText - Set Mission Archive Button Image —
void
— BattleReportSetButtonImage - Set Mission Archive Priority —
void
— BattleReportSetPriority - Set Mission Archive State —
void
— BattleReportSetState - Show Mission Archive in Missions Completed Total —
void
— BattleReportSetShownInMissionTotal - Get Mission Archive Mission Text —
text
— BattleReportGetMissionText - Get Mission Archive Mission Image —
string
<filepath> — BattleReportGetMissionImage - Get Mission Archive Scene Image —
string
<filepath> — BattleReportGetSceneImage - Get Mission Archive Scene Text —
text
— BattleReportGetSceneText - Get Mission Archive Difficulty Best Time Text —
text
— BattleReportGetDifficultyLevelBestTimeText - Get Mission Archive Difficulty Completed —
bool
— BattleReportGetDifficultyLevelCompleted - Get Mission Archive Best Time Text —
text
— BattleReportGetBestTimeText - Get Mission Archive Research Title —
text
— BattleReportGetResearchTitle - Get Mission Archive Research Text —
text
— BattleReportGetResearchText - Get Mission Archive Bonus Title —
text
— BattleReportGetBonusTitle - Get Mission Archive Bonus Text —
text
— BattleReportGetBonusText - Get Mission Archive Button Text —
text
— BattleReportGetButtonText - Get Mission Archive Button Image —
string
<filepath> — BattleReportGetButtonImage - Get Mission Archive Priority —
int
— BattleReportGetPriority - Get Mission Archive State —
int
<preset::MissionArchiveState> — BattleReportGetState - Set Selected Mission Archive —
void
— BattleReportPanelSetSelectedBattleReport - Selected Mission Archive —
int
<preset::MissionArchive> — BattleReportPanelGetSelectedBattleReport - Selected Mission Archive Difficulty —
int
<difficulty> — EventBattleReportPanelDifficultySelected - Selected Mission Archive Mission —
int
<preset::MissionArchive> — EventBattleReportPanelMissionSelected - Selected Mission Archive Scene —
int
<preset::MissionArchive> — EventBattleReportPanelSceneSelected
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:4270
// Automatic Variable Declarations
// Implementation
libCamp_gf_SetStoryState(libCamp_ge_StoryStateID_StoryStateBattleReportCurrentSelected, (BattleReportPanelGetSelectedBattleReport(1)));
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeBattleReportPanel, false);
}
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:12330
lv_mission = libCamp_ge_MapID_MapNone;
lv_selectedReport = BattleReportPanelGetSelectedBattleReport(1);
auto4356EC72_i = libCamp_gv_TSC_MISSION_FIRST;
while (auto4356EC72_i <= libCamp_gv_TSC_MISSION_LAST) {
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:12390
lv_scene = libCamp_ge_SceneID_SceneNone;
lv_selectedReport = BattleReportPanelGetSelectedBattleReport(1);
autoD7610F0E_i = libCamp_gv_TSC_SCENE_FIRST;
while (autoD7610F0E_i <= libCamp_gv_TSC_SCENE_LAST) {
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:879
DialogControlSetVisible(lib281DEC45_gv_zSS_UIArchivesBackButton, PlayerGroupAll(), true);
}
if ((BattleReportPanelGetSelectedBattleReport(1) == c_invalidBattleReportId)) {
DialogControlSetVisible(lib281DEC45_gv_zSS_UIArchivesScenePanel, PlayerGroupAll(), false);
DialogControlSetVisible(lib281DEC45_gv_zSS_UIArchivesMissionPanel, PlayerGroupAll(), false);
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:883
DialogControlSetVisible(lib281DEC45_gv_zSS_UIArchivesMissionPanel, PlayerGroupAll(), false);
}
else if ((DataTableGetInt(true, lib281DEC45_gf_ZSS_UIArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == lib281DEC45_ge_ZSS_UIArchivesType_Mission)) {
lv_mission = (DataTableGetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(lib281DEC45_gv_zSS_UIArchivesScenePanel, PlayerGroupAll(), false);
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:884
}
else if ((DataTableGetInt(true, lib281DEC45_gf_ZSS_UIArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == lib281DEC45_ge_ZSS_UIArchivesType_Mission)) {
lv_mission = (DataTableGetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(lib281DEC45_gv_zSS_UIArchivesScenePanel, PlayerGroupAll(), false);
DialogControlSetVisible(lib281DEC45_gv_zSS_UIArchivesMissionPanel, PlayerGroupAll(), true);
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:965
}
}
else if ((DataTableGetInt(true, lib281DEC45_gf_ZSS_UIArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == lib281DEC45_ge_ZSS_UIArchivesType_Scene)) {
lv_scene = UserDataInstanceFromReference(DataTableGetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(lib281DEC45_gv_zSS_UIArchivesScenePanel, PlayerGroupAll(), true);
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:966
}
else if ((DataTableGetInt(true, lib281DEC45_gf_ZSS_UIArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == lib281DEC45_ge_ZSS_UIArchivesType_Scene)) {
lv_scene = UserDataInstanceFromReference(DataTableGetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(lib281DEC45_gv_zSS_UIArchivesScenePanel, PlayerGroupAll(), true);
DialogControlSetVisible(lib281DEC45_gv_zSS_UIArchivesMissionPanel, PlayerGroupAll(), false);
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:6015
else {
}
if ((BattleReportPanelGetSelectedBattleReport(1) == c_invalidBattleReportId) && (libSwaC_gf_LastMapConditionCheck(libSwaC_ge_MissionCondition_Simulation) == false)) {
if ((lib281DEC45_gv_zSS_CampaignComplete == true)) {
lv_bestPriority = 0;
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:6159
}
lib281DEC45_gv_zSS_NextMission = (DataTableGetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
libSwaC_gf_StorySetSimulationMission(lib281DEC45_gv_zSS_NextMission);
if ((libSwaC_gf_StoryMapTypeCheck(lib281DEC45_gv_zSS_NextMission, c_mapKindUpgrade) == true)) {
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:6203
}
lv_scene = UserDataInstanceFromReference(DataTableGetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeBattleReportPanel, false);
libSwaC_gf_PlayCinematic(lv_scene, true);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1440
// Automatic Variable Declarations
// Implementation
return (DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1474
DialogControlSetVisible(libVCUI_gv_pU_ArchivesBackButton, PlayerGroupAll(), true);
}
if ((BattleReportPanelGetSelectedBattleReport(1) == c_invalidBattleReportId)) {
DialogControlSetVisible(libVCUI_gv_pU_ArchivesScenePanel, PlayerGroupAll(), false);
DialogControlSetVisible(libVCUI_gv_pU_ArchivesMissionPanel, PlayerGroupAll(), false);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1478
DialogControlSetVisible(libVCUI_gv_pU_ArchivesMissionPanel, PlayerGroupAll(), false);
}
else if ((DataTableGetInt(true, libVCUI_gf_PU_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libVCUI_ge_PU_ArchivesType_Mission)) {
lv_selectedMission = (DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libVCUI_gv_pU_ArchivesScenePanel, PlayerGroupAll(), false);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1479
}
else if ((DataTableGetInt(true, libVCUI_gf_PU_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libVCUI_ge_PU_ArchivesType_Mission)) {
lv_selectedMission = (DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libVCUI_gv_pU_ArchivesScenePanel, PlayerGroupAll(), false);
DialogControlSetVisible(libVCUI_gv_pU_ArchivesMissionPanel, PlayerGroupAll(), true);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1538
}
}
else if ((DataTableGetInt(true, libVCUI_gf_PU_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libVCUI_ge_PU_ArchivesType_Scene)) {
lv_selectedScene = UserDataInstanceFromReference(DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libVCUI_gv_pU_ArchivesScenePanel, PlayerGroupAll(), true);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1539
}
else if ((DataTableGetInt(true, libVCUI_gf_PU_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libVCUI_ge_PU_ArchivesType_Scene)) {
lv_selectedScene = UserDataInstanceFromReference(DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libVCUI_gv_pU_ArchivesScenePanel, PlayerGroupAll(), true);
DialogControlSetVisible(libVCUI_gv_pU_ArchivesMissionPanel, PlayerGroupAll(), false);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1646
// Automatic Variable Declarations
// Implementation
return UserDataInstanceFromReference(DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:6969
}
if ((BattleReportPanelGetSelectedBattleReport(1) == c_invalidBattleReportId) && (libVoiC_gf_LastMissionConditionCheck(libVoiC_ge_MissionCondition_Simulation) == false)) {
if ((libVoiC_gf_PC_CampaignIsComplete() == true)) {
lv_bestPriority = 0;
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:567
string libNCUI_gf_NU_ArchivesLastMissionSelected () {
// Implementation
return (DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:600
DialogControlSetVisible(libNCUI_gv_nU_ArchivesBackButton, PlayerGroupAll(), true);
}
if ((BattleReportPanelGetSelectedBattleReport(1) == c_invalidBattleReportId)) {
DialogControlSetVisible(libNCUI_gv_nU_ArchivesScenePanel, PlayerGroupAll(), false);
DialogControlSetVisible(libNCUI_gv_nU_ArchivesMissionPanel, PlayerGroupAll(), false);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:604
DialogControlSetVisible(libNCUI_gv_nU_ArchivesMissionPanel, PlayerGroupAll(), false);
}
else if ((DataTableGetInt(true, libNCUI_gf_NU_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libNCUI_ge_NU_ArchivesType_Mission)) {
lv_selectedMission = (DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libNCUI_gv_nU_ArchivesScenePanel, PlayerGroupAll(), false);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:605
}
else if ((DataTableGetInt(true, libNCUI_gf_NU_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libNCUI_ge_NU_ArchivesType_Mission)) {
lv_selectedMission = (DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libNCUI_gv_nU_ArchivesScenePanel, PlayerGroupAll(), false);
DialogControlSetVisible(libNCUI_gv_nU_ArchivesMissionPanel, PlayerGroupAll(), true);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:666
}
}
else if ((DataTableGetInt(true, libNCUI_gf_NU_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libNCUI_ge_NU_ArchivesType_Scene)) {
lv_selectedScene = UserDataInstanceFromReference(DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libNCUI_gv_nU_ArchivesScenePanel, PlayerGroupAll(), true);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:667
}
else if ((DataTableGetInt(true, libNCUI_gf_NU_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libNCUI_ge_NU_ArchivesType_Scene)) {
lv_selectedScene = UserDataInstanceFromReference(DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libNCUI_gv_nU_ArchivesScenePanel, PlayerGroupAll(), true);
DialogControlSetVisible(libNCUI_gv_nU_ArchivesMissionPanel, PlayerGroupAll(), false);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:808
string libNCUI_gf_NU_ArchivesSelectedScene () {
// Implementation
return UserDataInstanceFromReference(DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:4216
libNCUI_gv_nU_MasterArchivesEnabled = libComC_gf_CampaignIsComplete();
if ((BattleReportPanelGetSelectedBattleReport(1) == c_invalidBattleReportId) && (libComC_gf_LastMissionConditionCheck(libComC_ge_MissionCondition_Simulation) == false)) {
if ((libComC_gf_CampaignIsComplete() == true)) {
lv_bestPriority = 0;
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:7295
// Automatic Variable Declarations
// Implementation
return (DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:7322
DialogControlSetVisible(libA3DDD02B_gv_pP_ArchivesQuitButton, PlayerGroupAll(), true);
DialogControlSetVisible(libA3DDD02B_gv_pP_ArchivesBackButton, PlayerGroupAll(), false);
if ((BattleReportPanelGetSelectedBattleReport(1) == c_invalidBattleReportId)) {
DialogControlSetVisible(libA3DDD02B_gv_pP_ArchivesScenePanel, PlayerGroupAll(), false);
DialogControlSetVisible(libA3DDD02B_gv_pP_ArchivesMissionPanel, PlayerGroupAll(), false);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:7326
DialogControlSetVisible(libA3DDD02B_gv_pP_ArchivesMissionPanel, PlayerGroupAll(), false);
}
else if ((DataTableGetInt(true, libA3DDD02B_gf_PP_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libA3DDD02B_ge_PP_ArchivesType_Mission)) {
lv_selectedMission = (DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libA3DDD02B_gv_pP_ArchivesScenePanel, PlayerGroupAll(), false);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:7327
}
else if ((DataTableGetInt(true, libA3DDD02B_gf_PP_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libA3DDD02B_ge_PP_ArchivesType_Mission)) {
lv_selectedMission = (DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libA3DDD02B_gv_pP_ArchivesScenePanel, PlayerGroupAll(), false);
DialogControlSetVisible(libA3DDD02B_gv_pP_ArchivesMissionPanel, PlayerGroupAll(), true);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:7365
}
}
else if ((DataTableGetInt(true, libA3DDD02B_gf_PP_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libA3DDD02B_ge_PP_ArchivesType_Scene)) {
lv_selectedScene = UserDataInstanceFromReference(DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libA3DDD02B_gv_pP_ArchivesScenePanel, PlayerGroupAll(), true);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:7366
}
else if ((DataTableGetInt(true, libA3DDD02B_gf_PP_ArchivesDataTypeString(BattleReportPanelGetSelectedBattleReport(1))) == libA3DDD02B_ge_PP_ArchivesType_Scene)) {
lv_selectedScene = UserDataInstanceFromReference(DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
DialogControlSetVisible(libA3DDD02B_gv_pP_ArchivesScenePanel, PlayerGroupAll(), true);
DialogControlSetVisible(libA3DDD02B_gv_pP_ArchivesMissionPanel, PlayerGroupAll(), false);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:7400
// Automatic Variable Declarations
// Implementation
return UserDataInstanceFromReference(DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:9639
}
if ((BattleReportPanelGetSelectedBattleReport(1) == c_invalidBattleReportId) && (libA3DDD02B_gf_LastMissionConditionCheck(libA3DDD02B_ge_MissionCondition_Simulation) == false)) {
lv_bestPriority = 0;
lv_defaultSelection = true;