# Set Campaign Progress Image
Grammar — Set campaign progress image to image for players
Flags —Native
|Action
|Restricted
Sets the progress image for the specified campaign for the specified player.
# Arguments
playergroup
— Playersstring
— Campaignstring
<filepath> — Image
Returns — void
native void CampaignProgressSetImageFilePath(
playergroup players,
string campaignId,
string inFilePath,
);
# Related
Category: Story / Campaign Progress
- Set Campaign Progress Text —
void
— CampaignProgressSetText - Set Campaign Progress Image —
void
— CampaignProgressSetImageFilePath - Set Campaign Progress Tutorial Finished —
void
— CampaignProgressSetTutorialFinished - Set Campaign Progress Campaign Finished —
void
— CampaignProgressSetCampaignFinished - Delete Campaign Save —
void
— CampaignProgressDeleteCampaignSave - Enable Campaign Saves —
void
— CampaignProgressEnableCampaignSaves - Enable Campaign Completed Saves —
void
— CampaignProgressEnableCampaignCompletedSaves
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:10193
if ((libCamp_gf_MissionStatusCheck(libCamp_ge_MapID_MapTValerian03, libCamp_ge_MissionStatus_Completed) == true)) {
lv_body = (StringExternal("Param/Value/lib_Camp_8BB9EC51") + StringExternal("Param/Value/lib_Camp_4963E425") + StringExternal("Param/Value/lib_Camp_FAD183E6") + ConversationDataStateText(libCamp_gf_TS_MapConvoID(lp_mission), "Loading Screen Text") + StringExternal("Param/Value/lib_Camp_A998EBD1") + StringExternal("Param/Value/lib_Camp_4D8E2A14") + IntToText(libCamp_gf_NumberOfMissions(libCamp_ge_MissionCountOptions_Completed)) + StringExternal("Param/Value/lib_Camp_EDBD02C1") + StringExternal("Param/Value/lib_Camp_3CD91EF8") + DifficultyNameCampaign(libCamp_gf_TS_CampaignDifficulty()));
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, "Assets\\Textures\\ui_bnet_singleplayer_complete_bg.dds");
}
else {
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:10197
else {
lv_body = (StringExternal("Param/Value/lib_Camp_3B2B1EC4") + libCamp_gf_MissionNameInUpperCase(lp_mission) + StringExternal("Param/Value/lib_Camp_25ED2E6B") + ConversationDataStateText(libCamp_gf_TS_MapConvoID(lp_mission), "Loading Screen Text") + StringExternal("Param/Value/lib_Camp_7B263EC6") + StringExternal("Param/Value/lib_Camp_19D34994") + IntToText(libCamp_gf_NumberOfMissions(libCamp_ge_MissionCountOptions_Completed)) + StringExternal("Param/Value/lib_Camp_3EEC58DF") + StringExternal("Param/Value/lib_Camp_A047780C") + DifficultyNameCampaign(libCamp_gf_TS_CampaignDifficulty()));
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libCamp_gf_MissionLoadingScreenImage(lp_mission));
}
CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, lv_body);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13266
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.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13284
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");
}
else {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13293
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.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6804
TextExpressionSetToken("Param/Expression/lib_VoiC_8B2DEB44", "DIFFICULTY", DifficultyNameCampaign(libVoiC_gv_pCX_CampaignDifficulty));
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);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6815
CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, false);
if ((libVoiC_gf_PC_CampaignMapLoadingScreenVictoryImage(lp_mission) == null)) {
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libVoiC_gf_PC_CampaignMapLoadingScreenImage(lp_mission));
}
else {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6818
}
else {
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libVoiC_gf_PC_CampaignMapLoadingScreenVictoryImage(lp_mission));
}
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6828
TextExpressionSetToken("Param/Expression/lib_VoiC_D9FD915B", "DIFFICULTY", DifficultyNameCampaign(libVoiC_gv_pCX_CampaignDifficulty));
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);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6839
CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID2, false);
if ((libVoiC_gf_PC_CampaignMapLoadingScreenVictoryImage(lp_mission) == null)) {
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID2, libVoiC_gf_PC_CampaignMapLoadingScreenImage(lp_mission));
}
else {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6842
}
else {
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID2, libVoiC_gf_PC_CampaignMapLoadingScreenVictoryImage(lp_mission));
}
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2377
CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_NovC_59715DD0"));
}
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libNovC_gf_NC_MissionCampaignScreenImage(libNovC_gf_NC_MissionFinal()));
CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, true);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2388
CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, false);
if ((libNovC_gf_NC_MissionCampaignScreenImage(lp_mission) != null)) {
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libNovC_gf_NC_MissionCampaignScreenImage(lp_mission));
}
else if ((libComC_gf_CC_MapLoadingScreenVictoryImage(lp_mission) == null)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2391
}
else if ((libComC_gf_CC_MapLoadingScreenVictoryImage(lp_mission) == null)) {
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libComC_gf_CC_MapLoadingScreenImage(lp_mission));
}
else if (true) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2394
}
else if (true) {
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libComC_gf_CC_MapLoadingScreenVictoryImage(lp_mission));
}
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6394
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");
}
else {
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6403
CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_A3DDD02B_EC86CC32"));
CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, false);
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libA3DDD02B_gf_StoryMapLoadingScreenImage(lp_mission));
}
}