# Set Challenge Completed
Grammar — Flag challengeName as completed for playerGroup
Flags —Native
|Action
|Restricted
This action will only work for Blizzard maps.
# Arguments
playergroup
— PlayerGroupstring
— Challenge Namebool
— Completed
Returns — void
native void UISetChallengeCompleted(
playergroup players,
string challengeName,
bool completed,
);
# Related
Category: UI / Challenges
- Challenge Mode —
void
— UISetChallengeMode - Set Challenge High Score —
void
— UISetChallengeHighScore - Get Challenge High Score —
int
— UIGetChallengeHighScore - Set Challenge Score Text —
void
— UISetChallengeScoreText - Set Challenge Completed —
void
— UISetChallengeCompleted
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/advancedcommand.sc2map/MapScript.galaxy:1198
}
TriggerExecute(gt_ObjectiveKillCompleteQ, true, false);
UISetChallengeCompleted(PlayerGroupSingle(1), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1333
TriggerQueueClear(c_triggerQueueRetain);
Wait(2.0, c_timeGame);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
libChal_gf_CreateChallengeWaveSuccessPanel(libChal_ge_SuccessFailure_Success, StringExternal("Param/Value/26E6CBC6"), StringToText(""), StringToText(""), (StringExternal("Param/Value/FCB6090B") + TextTimeFormat(StringToText("<min2/>:<sec2/>"), gv_finalScore)), gt_DialogScoreShow);
libChal_gf_ShowHideChallengeWaveSuccessPanel(true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:2586
TriggerQueueClear(c_triggerQueueRetain);
TriggerExecute(gt_ObjectiveSurviveComplete, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:1467
}
TriggerExecute(gt_ObjectiveKillCompleteQ, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:2427
TriggerQueueClear(c_triggerQueueRetain);
TriggerExecute(gt_ObjectiveSurviveComplete, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancovertops.sc2map/MapScript.galaxy:1192
}
TriggerExecute(gt_ObjectiveKillCompleteQ, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2572
TriggerQueueClear(c_triggerQueueRetain);
TriggerExecute(gt_ObjectiveSurviveComplete, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeReal);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zerginfestation.sc2map/MapScript.galaxy:1184
}
TriggerExecute(gt_ObjectiveKillCompleteQ, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/advancedcommand.sc2map — MapScript.galaxy:1198
}
TriggerExecute(gt_ObjectiveKillCompleteQ, true, false);
UISetChallengeCompleted(PlayerGroupSingle(1), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/economy.sc2map — MapScript.galaxy:1333
TriggerQueueClear(c_triggerQueueRetain);
Wait(2.0, c_timeGame);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
libChal_gf_CreateChallengeWaveSuccessPanel(libChal_ge_SuccessFailure_Success, StringExternal("Param/Value/26E6CBC6"), StringToText(""), StringToText(""), (StringExternal("Param/Value/FCB6090B") + TextTimeFormat(StringToText("<min2/>:<sec2/>"), gv_finalScore)), gt_DialogScoreShow);
libChal_gf_ShowHideChallengeWaveSuccessPanel(true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2map — MapScript.galaxy:2586
TriggerQueueClear(c_triggerQueueRetain);
TriggerExecute(gt_ObjectiveSurviveComplete, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosspsionics.sc2map — MapScript.galaxy:1467
}
TriggerExecute(gt_ObjectiveKillCompleteQ, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2map — MapScript.galaxy:2427
TriggerQueueClear(c_triggerQueueRetain);
TriggerExecute(gt_ObjectiveSurviveComplete, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancovertops.sc2map — MapScript.galaxy:1192
}
TriggerExecute(gt_ObjectiveKillCompleteQ, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2map — MapScript.galaxy:2572
TriggerQueueClear(c_triggerQueueRetain);
TriggerExecute(gt_ObjectiveSurviveComplete, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeReal);
TriggerExecute(gt_DialogScoreShow, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zerginfestation.sc2map — MapScript.galaxy:1184
}
TriggerExecute(gt_ObjectiveKillCompleteQ, true, false);
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true);
Wait(2.0, c_timeGame);
TriggerExecute(gt_DialogScoreShow, true, false);