# Set Mission Archive Priority

Grammar — Set the priority of battleReportId to priority
FlagsNative | Action

Sets the priority for the specified mission archive.

# Arguments

Returns — void

native void BattleReportSetPriority(
	int inBattleReportId,
	int inPriority,
);

Category: Story / Mission Archives Panel

# Examples

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

    BattleReportSetDifficultyLevelBestTimeText(BattleReportLastCreated(), 3, libCamp_gf_TS_BattleReportFormatBestTime(lp_mission, 3));
    BattleReportSetDifficultyLevelBestTimeText(BattleReportLastCreated(), 4, libCamp_gf_TS_BattleReportFormatBestTime(lp_mission, 4));
    BattleReportSetPriority(BattleReportLastCreated(), lp_priority);
    if (((lp_mission != libCamp_ge_MapID_MapTHanson03B) && (lp_mission != libCamp_ge_MapID_MapTTosh03B) && (lp_mission != libCamp_ge_MapID_MapTValerian02B) && ((lp_mission != libCamp_ge_MapID_MapTHorner05S) || (libCamp_gf_TS_BattleReportMissionCompleted(libCamp_ge_MapID_MapTHorner05S) == true)))) {
        BattleReportSetShownInMissionTotal(BattleReportLastCreated(), true);

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

    BattleReportSetButtonImage(BattleReportLastCreated(), libCamp_gv_tS_SceneIcon[lv_indexScene]);
    BattleReportSetSceneText(BattleReportLastCreated(), libCamp_gv_tS_SceneNames[lv_indexScene]);
    BattleReportSetPriority(BattleReportLastCreated(), lp_priority);
}

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

        if ((lib281DEC45_gf_ZSS_UIArchivesScenePriority(lv_scene) < 1000)) {
            BattleReportCreate(PlayerGroupAll(), libSwaC_gf_StorySceneName(lv_scene), c_battleReportTypeScene, c_battleReportStateCompleted);
            BattleReportSetPriority(BattleReportLastCreated(), lib281DEC45_gf_ZSS_UIArchivesScenePriority(lv_scene));
            DataTableSetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportLastCreated()), ("Scenes" + ";" + (lv_scene)));
            DataTableSetInt(true, lib281DEC45_gf_ZSS_UIArchivesDataTypeString(BattleReportLastCreated()), (lib281DEC45_ge_ZSS_UIArchivesType_Scene));

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: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));

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: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/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: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));