# Set Challenge High Score
Grammar — Set the new high score of challengeName to highScore for playerGroup
Flags —Native
|Action
|Restricted
This action will only work for Blizzard maps.
# Arguments
playergroup
— PlayerGroupstring
— Challenge Nameint
— High Score
Returns — void
native void UISetChallengeHighScore(
playergroup players,
string challengeName,
int highScore,
);
# Related
Category: UI / Challenges
- [F] —
void
— Challenge Mode — ( UISetChallengeMode ) - [F] —
void
— Set Challenge High Score — ( UISetChallengeHighScore ) - [F] —
int
— Get Challenge High Score — ( UIGetChallengeHighScore ) - [F] —
void
— Set Challenge Score Text — ( UISetChallengeScoreText ) - [F] —
void
— Set Challenge Completed — ( UISetChallengeCompleted )
# Examples
# mods/challenges.sc2mod
// L1875
UISetChallengeHighScore(PlayerGroupSingle(1), libChal_gf_ChallengeName(lp_challengeType), lp_score)
// L1897
UISetChallengeHighScore(PlayerGroupSingle(1), libChal_gv_cHL_ChallengeName[(libChal_gv_cHL_CurrentType)], lv_score)