# Set Selected Mission Archive

Grammar — Set the selected mission archive for players|Player Group to visible|BattleReport
FlagsNative | Action

Sets which mission archive is selected on the mission archive panel for the specified player group.

# Arguments

  • playergroup — Players
  • int<preset::MissionArchive> — Selected Mission Archive

Returns — void

native void BattleReportPanelSetSelectedBattleReport(
	playergroup players,
	int inBattleReport,
);

Category: Story / Mission Archives Panel

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:4310

        }
        if ((lv_mission != libCamp_ge_MapID_MapNone)) {
            BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), libCamp_gv_tS_BattleReportMissions[(lv_mission)]);
        }
        else {

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:4324

            }
            if ((lv_scene != libCamp_ge_SceneID_SceneNone)) {
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), libCamp_gv_tS_BattleReportScenes[(lv_scene)]);
            }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:4330

    }
    else {
        BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), libCamp_gv_tS_BattleReportScenes[(libCamp_ge_SceneID_SceneTerran01RaynorIntro)]);
    }
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6044

            if ((lib281DEC45_gv_zSS_CampaignComplete == false) && (lv_defaultSelection == true) && (lib281DEC45_gf_ZSS_UIArchivesMissionPriority(lv_mission) <= lv_bestPriority)) {
                lv_bestPriority = lib281DEC45_gf_ZSS_UIArchivesMissionPriority(lv_mission);
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
            else if ((libSwaC_gf_LastMap() == lv_mission) && (libSwaC_gf_LastMapConditionCheck(libSwaC_ge_MissionCondition_Simulation) == true)) {

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6047

            }
            else if ((libSwaC_gf_LastMap() == lv_mission) && (libSwaC_gf_LastMapConditionCheck(libSwaC_ge_MissionCondition_Simulation) == true)) {
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
        }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6072

            if ((lib281DEC45_gv_zSS_CampaignComplete == false) && (lv_defaultSelection == true) && (lib281DEC45_gf_ZSS_UIArchivesMissionPriority(lv_mission) <= lv_bestPriority)) {
                lv_bestPriority = lib281DEC45_gf_ZSS_UIArchivesMissionPriority(lv_mission);
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
            else if ((libSwaC_gf_LastMap() == lv_mission) && (libSwaC_gf_LastMapConditionCheck(libSwaC_ge_MissionCondition_Simulation) == true)) {

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6075

            }
            else if ((libSwaC_gf_LastMap() == lv_mission) && (libSwaC_gf_LastMapConditionCheck(libSwaC_ge_MissionCondition_Simulation) == true)) {
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
            DataTableSetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportLastCreated()), (lv_mission));

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6094

            if ((lib281DEC45_gv_zSS_CampaignComplete == true) && (lv_defaultSelection == true) && (lib281DEC45_gf_ZSS_UIArchivesScenePriority(lv_scene) >= lv_bestPriority)) {
                lv_bestPriority = lib281DEC45_gf_ZSS_UIArchivesScenePriority(lv_scene);
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
            else if ((lib281DEC45_gv_zSS_CampaignComplete == false) && (lv_defaultSelection == true) && (lib281DEC45_gf_ZSS_UIArchivesScenePriority(lv_scene) <= lv_bestPriority)) {

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6098

            else if ((lib281DEC45_gv_zSS_CampaignComplete == false) && (lv_defaultSelection == true) && (lib281DEC45_gf_ZSS_UIArchivesScenePriority(lv_scene) <= lv_bestPriority)) {
                lv_bestPriority = lib281DEC45_gf_ZSS_UIArchivesScenePriority(lv_scene);
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:7002

            if ((libVCUI_gv_pU_MasterArchivesEnabled == false) && (lv_defaultSelection == true) && (libVCUI_gf_PU_ArchivesMissionPriority(lv_indexMission) <= lv_bestPriority)) {
                lv_bestPriority = libVCUI_gf_PU_ArchivesMissionPriority(lv_indexMission);
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
            else if ((libVoiC_gf_LastMap() == lv_indexMission) && (libVoiC_gf_LastMapConditionCheck(libVoiC_ge_MissionCondition_Simulation) == true)) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:7005

            }
            else if ((libVoiC_gf_LastMap() == lv_indexMission) && (libVoiC_gf_LastMapConditionCheck(libVoiC_ge_MissionCondition_Simulation) == true)) {
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
        }    

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:7020

            if ((libVCUI_gv_pU_MasterArchivesEnabled == true) && (lv_defaultSelection == true) && (libVCUI_gf_PU_ArchivesScenePriority(lv_indexScene) >= lv_bestPriority)) {
                lv_bestPriority = libVCUI_gf_PU_ArchivesMissionPriority(lv_indexMission);
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
            else if ((libVCUI_gv_pU_MasterArchivesEnabled == false) && (lv_defaultSelection == true) && (libVCUI_gf_PU_ArchivesScenePriority(lv_indexScene) <= lv_bestPriority)) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:7023

            }
            else if ((libVCUI_gv_pU_MasterArchivesEnabled == false) && (lv_defaultSelection == true) && (libVCUI_gf_PU_ArchivesScenePriority(lv_indexScene) <= lv_bestPriority)) {
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
        }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:4245

            if ((libNCUI_gv_nU_MasterArchivesEnabled == false) && (lv_defaultSelection == true) && (libNCUI_gf_NU_ArchivesMissionPriority(lv_indexMission) <= lv_bestPriority)) {
                lv_bestPriority = libNCUI_gf_NU_ArchivesMissionPriority(lv_indexMission);
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
            else if ((libComC_gf_LastMap() == lv_indexMission) && (libComC_gf_LastMapConditionCheck(libComC_ge_MissionCondition_Simulation) == true)) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:4248

            }
            else if ((libComC_gf_LastMap() == lv_indexMission) && (libComC_gf_LastMapConditionCheck(libComC_ge_MissionCondition_Simulation) == true)) {
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
        }    

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:4263

            if ((libNCUI_gv_nU_MasterArchivesEnabled == true) && (lv_defaultSelection == true) && (libNCUI_gf_NU_ArchivesScenePriority(lv_indexScene) >= lv_bestPriority)) {
                lv_bestPriority = libNCUI_gf_NU_ArchivesScenePriority(lv_indexScene);
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
            else if ((libNCUI_gv_nU_MasterArchivesEnabled == false) && (lv_defaultSelection == true) && (libNCUI_gf_NU_ArchivesScenePriority(lv_indexScene) <= lv_bestPriority)) {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:4267

            else if ((libNCUI_gv_nU_MasterArchivesEnabled == false) && (lv_defaultSelection == true) && (libNCUI_gf_NU_ArchivesScenePriority(lv_indexScene) <= lv_bestPriority)) {
                lv_bestPriority = libNCUI_gf_NU_ArchivesScenePriority(lv_indexScene);
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
        }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:9656

            DataTableSetInt(true, libA3DDD02B_gf_PP_ArchivesDataTypeString(BattleReportLastCreated()), (libA3DDD02B_ge_PP_ArchivesType_Mission));
            if ((libA3DDD02B_gf_LastMap() == lv_indexMission) && (libA3DDD02B_gf_LastMissionConditionCheck(libA3DDD02B_ge_MissionCondition_Simulation) == true)) {
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:9673

            if ((lv_defaultSelection == true) && (libA3DDD02B_gf_PP_ArchivesScenePriority(lv_indexScene) >= lv_bestPriority)) {
                lv_bestPriority = libA3DDD02B_gf_PP_ArchivesMissionPriority(lv_indexMission);
                BattleReportPanelSetSelectedBattleReport(PlayerGroupAll(), BattleReportLastCreated());
            }
        }