# Set Mission Archive Difficulty Completed

Grammar — Set the difficulty level difficultyLevel|DifficultyLevel of battleReportId as completed to completed
FlagsNative | Action

Flags a difficulty level as completed for the specified mission archive.

# Arguments

  • int<preset::MissionArchive> — Mission Archive Id
  • int<difficulty> — Difficulty Level
  • bool — Completed

Returns — void

native void BattleReportSetDifficultyLevelCompleted(
	int inBattleReportId,
	int inDifficultyLevel,
	bool inCompleted,
);

Category: Story / Mission Archives Panel

# Examples

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

    }

    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, libCamp_gf_MissionDifficultyCompleted(lp_mission, 1));
    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 2, libCamp_gf_MissionDifficultyCompleted(lp_mission, 2));
    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 3, libCamp_gf_MissionDifficultyCompleted(lp_mission, 3));

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


    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, libCamp_gf_MissionDifficultyCompleted(lp_mission, 1));
    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 2, libCamp_gf_MissionDifficultyCompleted(lp_mission, 2));
    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 3, libCamp_gf_MissionDifficultyCompleted(lp_mission, 3));
    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 4, libCamp_gf_MissionDifficultyCompleted(lp_mission, 4));

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

    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 1, libCamp_gf_MissionDifficultyCompleted(lp_mission, 1));
    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 2, libCamp_gf_MissionDifficultyCompleted(lp_mission, 2));
    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 3, libCamp_gf_MissionDifficultyCompleted(lp_mission, 3));
    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 4, libCamp_gf_MissionDifficultyCompleted(lp_mission, 4));
    BattleReportSetDifficultyLevelBestTimeText(BattleReportLastCreated(), 1, libCamp_gf_TS_BattleReportFormatBestTime(lp_mission, 1));

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

    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 2, libCamp_gf_MissionDifficultyCompleted(lp_mission, 2));
    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 3, libCamp_gf_MissionDifficultyCompleted(lp_mission, 3));
    BattleReportSetDifficultyLevelCompleted(BattleReportLastCreated(), 4, libCamp_gf_MissionDifficultyCompleted(lp_mission, 4));
    BattleReportSetDifficultyLevelBestTimeText(BattleReportLastCreated(), 1, libCamp_gf_TS_BattleReportFormatBestTime(lp_mission, 1));
    BattleReportSetDifficultyLevelBestTimeText(BattleReportLastCreated(), 2, libCamp_gf_TS_BattleReportFormatBestTime(lp_mission, 2));

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

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