# Set Challenge Completed

Grammar — Flag challengeName as completed for playerGroup
FlagsNative | Action | Restricted

This action will only work for Blizzard maps.

# Arguments

  • playergroup — PlayerGroup
  • string — Challenge Name
  • bool — Completed

Returns — void

native void UISetChallengeCompleted(
	playergroup players,
	string challengeName,
	bool completed,
);

Category: UI / Challenges

# Examples

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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);