# Challenge Mode

Grammar — Set Challenge Mode to onOff for players
FlagsNative | Action | Restricted

This action will only work for Blizzard maps.

# Arguments

  • playergroup — Players
  • bool<preset::OnOffOption> — On/Off

Returns — void

native void UISetChallengeMode(
	playergroup players,
	bool challengeMode,
);

Category: UI / Challenges

# Examples

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:182

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_Economy);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:480

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_ProtossCombat);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:244

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_ProtossPsionics);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:301

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(5);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:444

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_TerranCombat);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancovertops.sc2map/MapScript.galaxy:156

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_TerranCovertOps);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:490

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(9);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.galaxy:182

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_Economy);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:480

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_ProtossCombat);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosspsionics.sc2mapMapScript.galaxy:244

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_ProtossPsionics);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:301

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(5);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2mapMapScript.galaxy:444

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_TerranCombat);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancovertops.sc2mapMapScript.galaxy:156

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_TerranCovertOps);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:490

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(9);
    GameCheatAllow(c_gameCheatVictory, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zerginfestation.sc2mapMapScript.galaxy:154

    }

    UISetChallengeMode(PlayerGroupAll(), true);
    libChal_gf_LoadChallengeData(libChal_ge_ChallengeType_ZergInfestation);
    GameCheatAllow(c_gameCheatVictory, false);