# Selected Mission Archive

Grammar — Current selected mission archive by player player
FlagsNative | Function

Returns the mission archive that the specified player currently has selected.

# Arguments

  • int — Player

Returns — int<preset::MissionArchive>

native int BattleReportPanelGetSelectedBattleReport(
	int inPlayer,
);

Category: Story / Mission Archives Panel

# Examples

campaigns/libertystory.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1440

    // Automatic Variable Declarations
    // Implementation
    return (DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}

campaigns/voidstory.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1646

    // Automatic Variable Declarations
    // Implementation
    return UserDataInstanceFromReference(DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}

campaigns/voidstory.sc2campaignbase.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.sc2modbase.sc2data/LibNCUI.galaxy:567

string libNCUI_gf_NU_ArchivesLastMissionSelected () {
    // Implementation
    return (DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}

mods/missionpacks/novacampaign.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.sc2data/LibNCUI.galaxy:808

string libNCUI_gf_NU_ArchivesSelectedScene () {
    // Implementation
    return UserDataInstanceFromReference(DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}

mods/missionpacks/novacampaign.sc2modbase.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.sc2modbase.sc2data/LibA3DDD02B.galaxy:7295

    // Automatic Variable Declarations
    // Implementation
    return (DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}

mods/voidprologue.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.sc2data/LibA3DDD02B.galaxy:7400

    // Automatic Variable Declarations
    // Implementation
    return UserDataInstanceFromReference(DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1))));
}

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

    }

    if ((BattleReportPanelGetSelectedBattleReport(1) == c_invalidBattleReportId) && (libA3DDD02B_gf_LastMissionConditionCheck(libA3DDD02B_ge_MissionCondition_Simulation) == false)) {
        lv_bestPriority = 0;
        lv_defaultSelection = true;