# 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.sc2campaign

MapScript.galaxy

// L1198
UISetChallengeCompleted(PlayerGroupSingle(1), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L2586
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L1467
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L1333
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L2427
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L1192
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L2572
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L1184
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L1198
UISetChallengeCompleted(PlayerGroupSingle(1), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L1333
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L2586
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L1467
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L2427
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L1192
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L2572
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)
// L1184
UISetChallengeCompleted(PlayerGroupSingle(gv_pLAYER_USER), libChal_gf_ChallengeName(libChal_gf_CurrentChallengeType()), true)