# Last Created Mission Archive

Grammar — Last created mission archive
FlagsNative | Function

Returns the last mission archive created using “Add Mission Archive”.

Returns — int<preset::MissionArchive>

native int BattleReportLastCreated();

Category: Story / Mission Archives Panel

# Examples

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

    lv_indexMission = (lp_mission);
    BattleReportCreate(PlayerGroupAll(), libCamp_gf_MissionNameInUpperCase(lp_mission), c_battleReportTypeMission, lp_state);
    libCamp_gv_tS_BattleReportMissions[lv_indexMission] = BattleReportLastCreated();
    BattleReportSetButtonImage(BattleReportLastCreated(), libCamp_gv_tS_MissionBattleReportIcon[(lp_mission)]);
    BattleReportSetMissionText(BattleReportLastCreated(), libCamp_gf_MissionNameInUpperCase(lp_mission));

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

    BattleReportCreate(PlayerGroupAll(), libCamp_gf_MissionNameInUpperCase(lp_mission), c_battleReportTypeMission, lp_state);
    libCamp_gv_tS_BattleReportMissions[lv_indexMission] = BattleReportLastCreated();
    BattleReportSetButtonImage(BattleReportLastCreated(), libCamp_gv_tS_MissionBattleReportIcon[(lp_mission)]);
    BattleReportSetMissionText(BattleReportLastCreated(), libCamp_gf_MissionNameInUpperCase(lp_mission));
    BattleReportSetMissionImage(BattleReportLastCreated(), libCamp_gv_tS_MissionBattleReportImage[(lp_mission)]);

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

    libCamp_gv_tS_BattleReportMissions[lv_indexMission] = BattleReportLastCreated();
    BattleReportSetButtonImage(BattleReportLastCreated(), libCamp_gv_tS_MissionBattleReportIcon[(lp_mission)]);
    BattleReportSetMissionText(BattleReportLastCreated(), libCamp_gf_MissionNameInUpperCase(lp_mission));
    BattleReportSetMissionImage(BattleReportLastCreated(), libCamp_gv_tS_MissionBattleReportImage[(lp_mission)]);
    lv_index = 1;

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

    BattleReportSetButtonImage(BattleReportLastCreated(), libCamp_gv_tS_MissionBattleReportIcon[(lp_mission)]);
    BattleReportSetMissionText(BattleReportLastCreated(), libCamp_gf_MissionNameInUpperCase(lp_mission));
    BattleReportSetMissionImage(BattleReportLastCreated(), libCamp_gv_tS_MissionBattleReportImage[(lp_mission)]);
    lv_index = 1;
    for ( ; ( (autoFAD0F74B_ai >= 0 && lv_index <= autoFAD0F74B_ae) || (autoFAD0F74B_ai < 0 && lv_index >= autoFAD0F74B_ae) ) ; lv_index += autoFAD0F74B_ai ) {

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

    for ( ; ( (autoFAD0F74B_ai >= 0 && lv_index <= autoFAD0F74B_ae) || (autoFAD0F74B_ai < 0 && lv_index >= autoFAD0F74B_ae) ) ; lv_index += autoFAD0F74B_ai ) {
        if ((libCamp_gv_tS_MapAchievements[(lp_mission)][lv_index] != null)) {
            BattleReportAddAchievement(BattleReportLastCreated(), libCamp_gv_tS_MapAchievements[(lp_mission)][lv_index]);
        }

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

    }
    if ((lv_bonusMax > 0)) {
        BattleReportSetBonusTitle(BattleReportLastCreated(), StringExternal("Param/Value/lib_Camp_350E8EA1"));
        BattleReportSetBonusText(BattleReportLastCreated(), (StringExternal("Param/Value/lib_Camp_40F61B93") + libCamp_gf_FormatCredits(lv_bonus, true) + StringExternal("Param/Value/lib_Camp_C3ACEFBC") + libCamp_gf_FormatCredits(lv_bonusMax, true) + StringExternal("Param/Value/lib_Camp_CC270BAB")));
    }

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

    if ((lv_bonusMax > 0)) {
        BattleReportSetBonusTitle(BattleReportLastCreated(), StringExternal("Param/Value/lib_Camp_350E8EA1"));
        BattleReportSetBonusText(BattleReportLastCreated(), (StringExternal("Param/Value/lib_Camp_40F61B93") + libCamp_gf_FormatCredits(lv_bonus, true) + StringExternal("Param/Value/lib_Camp_C3ACEFBC") + libCamp_gf_FormatCredits(lv_bonusMax, true) + StringExternal("Param/Value/lib_Camp_CC270BAB")));
    }
    else {

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

    }
    else {
        BattleReportSetBonusTitle(BattleReportLastCreated(), StringToText(""));
        BattleReportSetBonusText(BattleReportLastCreated(), StringToText(""));
    }

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

    else {
        BattleReportSetBonusTitle(BattleReportLastCreated(), StringToText(""));
        BattleReportSetBonusText(BattleReportLastCreated(), StringToText(""));
    }
    lv_researchPointZergMax = libCamp_gf_TS_StoryResearchMissionOpportunities(lp_mission, libCamp_ge_StoryResearchCategory_ResearchCategoryZerg);

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


    if (((lv_researchPointZergMax > 0) || (lv_researchPointProtMax > 0))) {
        BattleReportSetResearchTitle(BattleReportLastCreated(), StringExternal("Param/Value/lib_Camp_CE047F63"));
        lv_researchText = StringToText("");
        if ((lv_researchPointZergMax > 0)) {

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

            if ((libSwaC_gf_MissionStatusCheck(lv_mission, libSwaC_ge_MissionStatus_Completed) == true)) {
                BattleReportCreate(PlayerGroupAll(), libSwaC_gf_StoryMapName(lv_mission), c_battleReportTypeMission, c_battleReportStateCompleted);
                BattleReportSetPriority(BattleReportLastCreated(), lib281DEC45_gf_ZSS_UIArchivesMissionPriority(lv_mission));
                BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
                BattleReportSetMissionText(BattleReportLastCreated(), libSwaC_gf_StoryMapName(lv_mission));

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

                BattleReportCreate(PlayerGroupAll(), libSwaC_gf_StoryMapName(lv_mission), c_battleReportTypeMission, c_battleReportStateCompleted);
                BattleReportSetPriority(BattleReportLastCreated(), lib281DEC45_gf_ZSS_UIArchivesMissionPriority(lv_mission));
                BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
                BattleReportSetMissionText(BattleReportLastCreated(), libSwaC_gf_StoryMapName(lv_mission));
            }

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

                BattleReportSetPriority(BattleReportLastCreated(), lib281DEC45_gf_ZSS_UIArchivesMissionPriority(lv_mission));
                BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
                BattleReportSetMissionText(BattleReportLastCreated(), libSwaC_gf_StoryMapName(lv_mission));
            }
            else {

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

                BattleReportCreate(PlayerGroupAll(), libSwaC_gf_StoryMapName(lv_mission), c_battleReportTypeMission, c_battleReportStateHidden);
            }
            DataTableSetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportLastCreated()), (lv_mission));
            DataTableSetInt(true, lib281DEC45_gf_ZSS_UIArchivesDataTypeString(BattleReportLastCreated()), (lib281DEC45_ge_ZSS_UIArchivesType_Mission));
            if ((lib281DEC45_gv_zSS_CampaignComplete == false) && (lv_defaultSelection == true) && (lib281DEC45_gf_ZSS_UIArchivesMissionPriority(lv_mission) <= lv_bestPriority)) {

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

            }
            DataTableSetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportLastCreated()), (lv_mission));
            DataTableSetInt(true, lib281DEC45_gf_ZSS_UIArchivesDataTypeString(BattleReportLastCreated()), (lib281DEC45_ge_ZSS_UIArchivesType_Mission));
            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);

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:6064

                    BattleReportCreate(PlayerGroupAll(), libSwaC_gf_StoryMapName(lv_mission), c_battleReportTypeMission, c_battleReportStateNormal);
                }
                BattleReportSetPriority(BattleReportLastCreated(), lib281DEC45_gf_ZSS_UIArchivesMissionPriority(lv_mission));
                BattleReportSetMissionText(BattleReportLastCreated(), libSwaC_gf_StoryMapName(lv_mission));
            }

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

                }
                BattleReportSetPriority(BattleReportLastCreated(), lib281DEC45_gf_ZSS_UIArchivesMissionPriority(lv_mission));
                BattleReportSetMissionText(BattleReportLastCreated(), libSwaC_gf_StoryMapName(lv_mission));
            }
            else {

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

            if ((libVoiC_gf_MissionStatusCheck(lv_indexMission, libVoiC_ge_MissionStatus_Completed) == true)) {
                BattleReportCreate(PlayerGroupAll(), libVoiC_gf_PC_CampaignMapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateCompleted);
                BattleReportSetPriority(BattleReportLastCreated(), libVCUI_gf_PU_ArchivesMissionPriority(lv_indexMission));
                BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
                BattleReportSetMissionText(BattleReportLastCreated(), libVoiC_gf_PC_CampaignMapName(lv_indexMission));

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

                BattleReportCreate(PlayerGroupAll(), libVoiC_gf_PC_CampaignMapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateCompleted);
                BattleReportSetPriority(BattleReportLastCreated(), libVCUI_gf_PU_ArchivesMissionPriority(lv_indexMission));
                BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
                BattleReportSetMissionText(BattleReportLastCreated(), libVoiC_gf_PC_CampaignMapName(lv_indexMission));
            }

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

                BattleReportSetPriority(BattleReportLastCreated(), libVCUI_gf_PU_ArchivesMissionPriority(lv_indexMission));
                BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
                BattleReportSetMissionText(BattleReportLastCreated(), libVoiC_gf_PC_CampaignMapName(lv_indexMission));
            }
            else {

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

                BattleReportCreate(PlayerGroupAll(), libVoiC_gf_PC_CampaignMapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateHidden);
            }
            DataTableSetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportLastCreated()), (lv_indexMission));
            DataTableSetInt(true, libVCUI_gf_PU_ArchivesDataTypeString(BattleReportLastCreated()), (libVCUI_ge_PU_ArchivesType_Mission));
            if ((libVCUI_gv_pU_MasterArchivesEnabled == false) && (lv_defaultSelection == true) && (libVCUI_gf_PU_ArchivesMissionPriority(lv_indexMission) <= lv_bestPriority)) {

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

            }
            DataTableSetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportLastCreated()), (lv_indexMission));
            DataTableSetInt(true, libVCUI_gf_PU_ArchivesDataTypeString(BattleReportLastCreated()), (libVCUI_ge_PU_ArchivesType_Mission));
            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);

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:7015

        if ((libVCUI_gf_PU_ArchivesScenePriority(lv_indexScene) < 1000)) {
            BattleReportCreate(PlayerGroupAll(), libVoiC_gf_StorySceneName(lv_indexScene), c_battleReportTypeScene, c_battleReportStateCompleted);
            BattleReportSetPriority(BattleReportLastCreated(), libVCUI_gf_PU_ArchivesScenePriority(lv_indexScene));
            DataTableSetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportLastCreated()), ("Scenes;" + (lv_indexScene)));
            DataTableSetInt(true, libVCUI_gf_PU_ArchivesDataTypeString(BattleReportLastCreated()), (libVCUI_ge_PU_ArchivesType_Scene));

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

            BattleReportCreate(PlayerGroupAll(), libVoiC_gf_StorySceneName(lv_indexScene), c_battleReportTypeScene, c_battleReportStateCompleted);
            BattleReportSetPriority(BattleReportLastCreated(), libVCUI_gf_PU_ArchivesScenePriority(lv_indexScene));
            DataTableSetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportLastCreated()), ("Scenes;" + (lv_indexScene)));
            DataTableSetInt(true, libVCUI_gf_PU_ArchivesDataTypeString(BattleReportLastCreated()), (libVCUI_ge_PU_ArchivesType_Scene));
            if ((libVCUI_gv_pU_MasterArchivesEnabled == true) && (lv_defaultSelection == true) && (libVCUI_gf_PU_ArchivesScenePriority(lv_indexScene) >= lv_bestPriority)) {

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

            BattleReportSetPriority(BattleReportLastCreated(), libVCUI_gf_PU_ArchivesScenePriority(lv_indexScene));
            DataTableSetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportLastCreated()), ("Scenes;" + (lv_indexScene)));
            DataTableSetInt(true, libVCUI_gf_PU_ArchivesDataTypeString(BattleReportLastCreated()), (libVCUI_ge_PU_ArchivesType_Scene));
            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);

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

            if ((libComC_gf_MissionStatusCheck(lv_indexMission, libComC_ge_MissionStatus_Completed) == true)) {
                BattleReportCreate(PlayerGroupAll(), libComC_gf_CC_MapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateCompleted);
                BattleReportSetPriority(BattleReportLastCreated(), libNCUI_gf_NU_ArchivesMissionPriority(lv_indexMission));
                BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
                BattleReportSetMissionText(BattleReportLastCreated(), libComC_gf_CC_MapName(lv_indexMission));

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

                BattleReportCreate(PlayerGroupAll(), libComC_gf_CC_MapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateCompleted);
                BattleReportSetPriority(BattleReportLastCreated(), libNCUI_gf_NU_ArchivesMissionPriority(lv_indexMission));
                BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
                BattleReportSetMissionText(BattleReportLastCreated(), libComC_gf_CC_MapName(lv_indexMission));
            }

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

                BattleReportSetPriority(BattleReportLastCreated(), libNCUI_gf_NU_ArchivesMissionPriority(lv_indexMission));
                BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
                BattleReportSetMissionText(BattleReportLastCreated(), libComC_gf_CC_MapName(lv_indexMission));
            }
            else {

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

                BattleReportCreate(PlayerGroupAll(), libComC_gf_CC_MapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateHidden);
            }
            DataTableSetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportLastCreated()), (lv_indexMission));
            DataTableSetInt(true, libNCUI_gf_NU_ArchivesDataTypeString(BattleReportLastCreated()), (libNCUI_ge_NU_ArchivesType_Mission));
            if ((libNCUI_gv_nU_MasterArchivesEnabled == false) && (lv_defaultSelection == true) && (libNCUI_gf_NU_ArchivesMissionPriority(lv_indexMission) <= lv_bestPriority)) {

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

            }
            DataTableSetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportLastCreated()), (lv_indexMission));
            DataTableSetInt(true, libNCUI_gf_NU_ArchivesDataTypeString(BattleReportLastCreated()), (libNCUI_ge_NU_ArchivesType_Mission));
            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);

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:4258

        if ((libNCUI_gf_NU_ArchivesScenePriority(lv_indexScene) < 1000)) {
            BattleReportCreate(PlayerGroupAll(), libComC_gf_CC_SceneName(lv_indexScene), c_battleReportTypeScene, c_battleReportStateCompleted);
            BattleReportSetPriority(BattleReportLastCreated(), libNCUI_gf_NU_ArchivesScenePriority(lv_indexScene));
            DataTableSetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportLastCreated()), ("Scenes;" + (lv_indexScene)));
            DataTableSetInt(true, libNCUI_gf_NU_ArchivesDataTypeString(BattleReportLastCreated()), (libNCUI_ge_NU_ArchivesType_Scene));

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

            BattleReportCreate(PlayerGroupAll(), libComC_gf_CC_SceneName(lv_indexScene), c_battleReportTypeScene, c_battleReportStateCompleted);
            BattleReportSetPriority(BattleReportLastCreated(), libNCUI_gf_NU_ArchivesScenePriority(lv_indexScene));
            DataTableSetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportLastCreated()), ("Scenes;" + (lv_indexScene)));
            DataTableSetInt(true, libNCUI_gf_NU_ArchivesDataTypeString(BattleReportLastCreated()), (libNCUI_ge_NU_ArchivesType_Scene));
            if ((libNCUI_gv_nU_MasterArchivesEnabled == true) && (lv_defaultSelection == true) && (libNCUI_gf_NU_ArchivesScenePriority(lv_indexScene) >= lv_bestPriority)) {

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

            BattleReportSetPriority(BattleReportLastCreated(), libNCUI_gf_NU_ArchivesScenePriority(lv_indexScene));
            DataTableSetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportLastCreated()), ("Scenes;" + (lv_indexScene)));
            DataTableSetInt(true, libNCUI_gf_NU_ArchivesDataTypeString(BattleReportLastCreated()), (libNCUI_ge_NU_ArchivesType_Scene));
            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);

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

        if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Mission") {
            BattleReportCreate(PlayerGroupAll(), libA3DDD02B_gf_StoryMapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateCompleted);
            BattleReportSetPriority(BattleReportLastCreated(), libA3DDD02B_gf_PP_ArchivesMissionPriority(lv_indexMission));
            BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
            BattleReportSetMissionText(BattleReportLastCreated(), libA3DDD02B_gf_StoryMapName(lv_indexMission));

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

            BattleReportCreate(PlayerGroupAll(), libA3DDD02B_gf_StoryMapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateCompleted);
            BattleReportSetPriority(BattleReportLastCreated(), libA3DDD02B_gf_PP_ArchivesMissionPriority(lv_indexMission));
            BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
            BattleReportSetMissionText(BattleReportLastCreated(), libA3DDD02B_gf_StoryMapName(lv_indexMission));
            DataTableSetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportLastCreated()), (lv_indexMission));

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

            BattleReportSetPriority(BattleReportLastCreated(), libA3DDD02B_gf_PP_ArchivesMissionPriority(lv_indexMission));
            BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
            BattleReportSetMissionText(BattleReportLastCreated(), libA3DDD02B_gf_StoryMapName(lv_indexMission));
            DataTableSetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportLastCreated()), (lv_indexMission));
            DataTableSetInt(true, libA3DDD02B_gf_PP_ArchivesDataTypeString(BattleReportLastCreated()), (libA3DDD02B_ge_PP_ArchivesType_Mission));

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

            BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, true);
            BattleReportSetMissionText(BattleReportLastCreated(), libA3DDD02B_gf_StoryMapName(lv_indexMission));
            DataTableSetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportLastCreated()), (lv_indexMission));
            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)) {

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

            BattleReportSetMissionText(BattleReportLastCreated(), libA3DDD02B_gf_StoryMapName(lv_indexMission));
            DataTableSetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportLastCreated()), (lv_indexMission));
            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: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:9668

        if ((libA3DDD02B_gf_PP_ArchivesScenePriority(lv_indexScene) < 1000)) {
            BattleReportCreate(PlayerGroupAll(), libA3DDD02B_gf_StorySceneName(lv_indexScene), c_battleReportTypeScene, c_battleReportStateCompleted);
            BattleReportSetPriority(BattleReportLastCreated(), libA3DDD02B_gf_PP_ArchivesScenePriority(lv_indexScene));
            DataTableSetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportLastCreated()), ("Scenes;" + (lv_indexScene)));
            DataTableSetInt(true, libA3DDD02B_gf_PP_ArchivesDataTypeString(BattleReportLastCreated()), (libA3DDD02B_ge_PP_ArchivesType_Scene));

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

            BattleReportCreate(PlayerGroupAll(), libA3DDD02B_gf_StorySceneName(lv_indexScene), c_battleReportTypeScene, c_battleReportStateCompleted);
            BattleReportSetPriority(BattleReportLastCreated(), libA3DDD02B_gf_PP_ArchivesScenePriority(lv_indexScene));
            DataTableSetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportLastCreated()), ("Scenes;" + (lv_indexScene)));
            DataTableSetInt(true, libA3DDD02B_gf_PP_ArchivesDataTypeString(BattleReportLastCreated()), (libA3DDD02B_ge_PP_ArchivesType_Scene));
            if ((lv_defaultSelection == true) && (libA3DDD02B_gf_PP_ArchivesScenePriority(lv_indexScene) >= lv_bestPriority)) {

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

            BattleReportSetPriority(BattleReportLastCreated(), libA3DDD02B_gf_PP_ArchivesScenePriority(lv_indexScene));
            DataTableSetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportLastCreated()), ("Scenes;" + (lv_indexScene)));
            DataTableSetInt(true, libA3DDD02B_gf_PP_ArchivesDataTypeString(BattleReportLastCreated()), (libA3DDD02B_ge_PP_ArchivesType_Scene));
            if ((lv_defaultSelection == true) && (libA3DDD02B_gf_PP_ArchivesScenePriority(lv_indexScene) >= lv_bestPriority)) {
                lv_bestPriority = libA3DDD02B_gf_PP_ArchivesMissionPriority(lv_indexMission);

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());
            }
        }