# Set Campaign Progress Campaign Finished

Grammar — Set campaign progress campaign finished to finished for players
FlagsNative | Action | Restricted

Flags the campaign as finished or unfinished for the specified campaign for the specified player.

# Arguments

  • playergroup — Players
  • string — Campaign
  • bool — Finished

Returns — void

native void CampaignProgressSetCampaignFinished(
	playergroup players,
	string campaignId,
	bool inFinished,
);

Category: Story / Campaign Progress

# Examples

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

    }
    CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, lv_body);
    CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, libCamp_gf_MissionStatusCheck(libCamp_ge_MapID_MapTValerian03, libCamp_ge_MissionStatus_Completed));
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13265

                TextExpressionSetToken("Param/Expression/lib_SwaC_FAA2A2EC", "C", DifficultyNameCampaign(libSwaC_gv_zSX_CampaignDifficulty));
                CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_SwaC_FAA2A2EC"));
                CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, false);
                CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libSwaC_gf_StoryMapLoadingScreenImage(libSwaC_gf_CurrentMap()));
                break;

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13283

            TextExpressionSetToken("Param/Expression/lib_SwaC_E1EDAD1C", "DIFFICULTY", DifficultyNameCampaign(libSwaC_gv_zSX_CampaignDifficulty));
            CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_SwaC_E1EDAD1C"));
            CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, true);
            CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, "Assets\\Textures\\ui_bnet_singleplayer_complete_bg_hots.dds");
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13292

            TextExpressionSetToken("Param/Expression/lib_SwaC_EC86CC32", "C", DifficultyNameCampaign(libSwaC_gv_zSX_CampaignDifficulty));
            CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_SwaC_EC86CC32"));
            CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, false);
            CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libSwaC_gf_StoryMapLoadingScreenImage(lp_mission));
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6805

            CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_VoiC_8B2DEB44"));
            CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, "Assets\\Textures\\ui_battlenet_glue_campaign_mapicon_void_finish.dds");
            CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, true);
        }
        else {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6813

            TextExpressionSetToken("Param/Expression/lib_VoiC_B282D0C8", "C", DifficultyNameCampaign(libVoiC_gv_pCX_CampaignDifficulty));
            CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_VoiC_B282D0C8"));
            CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, false);
            if ((libVoiC_gf_PC_CampaignMapLoadingScreenVictoryImage(lp_mission) == null)) {
                CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libVoiC_gf_PC_CampaignMapLoadingScreenImage(lp_mission));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6829

            CampaignProgressSetText(PlayerGroupAll(), lv_campaignID2, TextExpressionAssemble("Param/Expression/lib_VoiC_D9FD915B"));
            CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID2, "Assets\\Textures\\ui_battlenet_glue_campaign_mapicon_epilogue_finish.dds");
            CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID2, true);
        }
        else {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6837

            TextExpressionSetToken("Param/Expression/lib_VoiC_71A9CDC5", "C", DifficultyNameCampaign(libVoiC_gv_pCX_CampaignDifficulty));
            CampaignProgressSetText(PlayerGroupAll(), lv_campaignID2, TextExpressionAssemble("Param/Expression/lib_VoiC_71A9CDC5"));
            CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID2, false);
            if ((libVoiC_gf_PC_CampaignMapLoadingScreenVictoryImage(lp_mission) == null)) {
                CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID2, libVoiC_gf_PC_CampaignMapLoadingScreenImage(lp_mission));

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:2378

        }
        CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libNovC_gf_NC_MissionCampaignScreenImage(libNovC_gf_NC_MissionFinal()));
        CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, true);
    }
    else {

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:2386

        TextExpressionSetToken("Param/Expression/lib_NovC_B282D0C8", "C", DifficultyNameCampaign(libComC_gf_CC_DifficultyofCampaign()));
        CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_NovC_B282D0C8"));
        CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, false);
        if ((libNovC_gf_NC_MissionCampaignScreenImage(lp_mission) != null)) {
            CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libNovC_gf_NC_MissionCampaignScreenImage(lp_mission));

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

        TextExpressionSetToken("Param/Expression/lib_A3DDD02B_E1EDAD1C", "DIFFICULTY", DifficultyNameCampaign(libA3DDD02B_gv_pPX_CampaignDifficulty));
        CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_A3DDD02B_E1EDAD1C"));
        CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, true);
        CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, "Assets\\Textures\\ui_battlenet_glue_campaign_mapicon_prologue_finish.dds");
    }

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

        TextExpressionSetToken("Param/Expression/lib_A3DDD02B_EC86CC32", "C", DifficultyNameCampaign(libA3DDD02B_gv_pPX_CampaignDifficulty));
        CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_A3DDD02B_EC86CC32"));
        CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, false);
        CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libA3DDD02B_gf_StoryMapLoadingScreenImage(lp_mission));
    }