# Set Campaign Progress Text
Grammar — Set campaign progress text to text for players
Flags —Native
|Action
|Restricted
Sets the progress text for the specified campaign for the specified player.
# Arguments
playergroup
— Playersstring
— Campaigntext
— Text
Returns — void
native void CampaignProgressSetText(
playergroup players,
string campaignId,
text inText,
);
# 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:10199
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libCamp_gf_MissionLoadingScreenImage(lp_mission));
}
CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, lv_body);
CampaignProgressSetCampaignFinished(PlayerGroupAll(), lv_campaignID, libCamp_gf_MissionStatusCheck(libCamp_ge_MapID_MapTValerian03, libCamp_ge_MissionStatus_Completed));
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13264
TextExpressionSetToken("Param/Expression/lib_SwaC_FAA2A2EC", "B", IntToText(libSwaC_gf_NumberOfMissionsAll(libSwaC_ge_MissionCountOptions_Completed)));
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()));
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13282
TextExpressionSetToken("Param/Expression/lib_SwaC_E1EDAD1C", "MISSIONSCOMPLETE", IntToText(libSwaC_gf_NumberOfMissionsAll(libSwaC_ge_MissionCountOptions_Completed)));
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.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13291
TextExpressionSetToken("Param/Expression/lib_SwaC_EC86CC32", "B", IntToText(libSwaC_gf_NumberOfMissionsAll(libSwaC_ge_MissionCountOptions_Completed)));
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.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6803
TextExpressionSetToken("Param/Expression/lib_VoiC_8B2DEB44", "MISSIONSCOMPLETE", IntToText(libVoiC_gf_NumberOfLotVMissions(libVoiC_ge_MissionCountOptions_Completed)));
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:6812
TextExpressionSetToken("Param/Expression/lib_VoiC_B282D0C8", "B", IntToText(libVoiC_gf_NumberOfLotVMissions(libVoiC_ge_MissionCountOptions_Completed)));
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)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6827
TextExpressionSetToken("Param/Expression/lib_VoiC_D9FD915B", "MISSIONSCOMPLETE", IntToText(libVoiC_gf_NumberOfEpilogueMissions(libVoiC_ge_MissionCountOptions_Completed)));
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:6836
TextExpressionSetToken("Param/Expression/lib_VoiC_71A9CDC5", "B", IntToText(libVoiC_gf_NumberOfEpilogueMissions(libVoiC_ge_MissionCountOptions_Completed)));
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)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2363
TextExpressionSetToken("Param/Expression/lib_NovC_51680177", "MISSIONSCOMPLETE", IntToText(libComC_gf_NumberOfMissions(libComC_ge_MissionCountOptions_Completed)));
TextExpressionSetToken("Param/Expression/lib_NovC_51680177", "DIFFICULTY", DifficultyNameCampaign(libComC_gf_CC_DifficultyofCampaign()));
CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_NovC_51680177"));
}
else if ((libNovC_gf_NC_MissionFinal() == "Nova06")) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2369
TextExpressionSetToken("Param/Expression/lib_NovC_8B2DEB44", "MISSIONSCOMPLETE", IntToText(libComC_gf_NumberOfMissions(libComC_ge_MissionCountOptions_Completed)));
TextExpressionSetToken("Param/Expression/lib_NovC_8B2DEB44", "DIFFICULTY", DifficultyNameCampaign(libComC_gf_CC_DifficultyofCampaign()));
CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_NovC_8B2DEB44"));
}
else if (true) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2375
TextExpressionSetToken("Param/Expression/lib_NovC_59715DD0", "MISSIONSCOMPLETE", IntToText(libComC_gf_NumberOfMissions(libComC_ge_MissionCountOptions_Completed)));
TextExpressionSetToken("Param/Expression/lib_NovC_59715DD0", "DIFFICULTY", DifficultyNameCampaign(libComC_gf_CC_DifficultyofCampaign()));
CampaignProgressSetText(PlayerGroupAll(), lv_campaignID, TextExpressionAssemble("Param/Expression/lib_NovC_59715DD0"));
}
CampaignProgressSetImageFilePath(PlayerGroupAll(), lv_campaignID, libNovC_gf_NC_MissionCampaignScreenImage(libNovC_gf_NC_MissionFinal()));
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNovC.galaxy:2385
TextExpressionSetToken("Param/Expression/lib_NovC_B282D0C8", "B", IntToText(libComC_gf_NumberOfMissions(libComC_ge_MissionCountOptions_Completed)));
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)) {
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6392
TextExpressionSetToken("Param/Expression/lib_A3DDD02B_E1EDAD1C", "MISSIONSCOMPLETE", IntToText(libA3DDD02B_gf_NumberOfMissionsAll(libA3DDD02B_ge_MissionCountOptions_Completed)));
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.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6401
TextExpressionSetToken("Param/Expression/lib_A3DDD02B_EC86CC32", "B", IntToText(libA3DDD02B_gf_NumberOfMissionsAll(libA3DDD02B_ge_MissionCountOptions_Completed)));
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));