# Challenge Mode
Grammar — Set Challenge Mode to onOff for players
Flags —Native
|Action
|Restricted
This action will only work for Blizzard maps.
# Arguments
playergroup
— Playersbool
<preset::OnOffOption> — On/Off
Returns — void
native void UISetChallengeMode(
playergroup players,
bool challengeMode,
);
# 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:155
}
UISetChallengeMode(PlayerGroupSingle(gv_pLAYER_USER), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_AdvancedCommand);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:182
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_Economy);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:480
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_ProtossCombat);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:244
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_ProtossPsionics);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:301
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(5);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:444
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_TerranCombat);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancovertops.sc2map/MapScript.galaxy:156
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_TerranCovertOps);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:490
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(9);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zerginfestation.sc2map/MapScript.galaxy:154
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_ZergInfestation);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/advancedcommand.sc2map — MapScript.galaxy:155
}
UISetChallengeMode(PlayerGroupSingle(gv_pLAYER_USER), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_AdvancedCommand);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/economy.sc2map — MapScript.galaxy:182
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_Economy);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2map — MapScript.galaxy:480
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_ProtossCombat);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosspsionics.sc2map — MapScript.galaxy:244
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_ProtossPsionics);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2map — MapScript.galaxy:301
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(5);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2map — MapScript.galaxy:444
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_TerranCombat);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancovertops.sc2map — MapScript.galaxy:156
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_TerranCovertOps);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2map — MapScript.galaxy:490
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(9);
GameCheatAllow(c_gameCheatVictory, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zerginfestation.sc2map — MapScript.galaxy:154
}
UISetChallengeMode(PlayerGroupAll(), true);
libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_ZergInfestation);
GameCheatAllow(c_gameCheatVictory, false);