# Set Talents Enabled

Grammar — Set Talents Enabled(enabled)
FlagsNative | Action

If the Talent system is disabled the talent selection UI will not be available.

# Arguments

Returns — void

native void SetTalentsEnabled(bool inRequired);

Category: Talent Tree / Basic

# Examples

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:666

    libGame_gv_gateTimerReady = false;
    libGame_gv_minion_CapCatapults = true;
    SetTalentsEnabled(false);
    libNtve_gf_CreateActorAtPoint("MMController", RegionGetCenter(RegionEntireMap()));
    libMapM_gv_mapMechanicControllerActor = libNtve_gf_ActorLastCreated();

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:2153

    libStEx_gf_DisplayVOMessageGamePaused(StringExternal("Param/Value/A1AC9EDD"), libStEx_ge_SE_VOMessageType_blank, true);
    libStEx_gf_AddInGameTip(libStEx_ge_InGameTip_Talent);
    SetTalentsEnabled(true);
    libStEx_gf_SE_ShowHideTalentPortraitFlashingImage(true);
    TriggerExecute(gt_ObjectivePickTalentCreate, true, false);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:291

    libCore_gv_sYSGameMode = libCore_ge_GameModes_TutorialMapMechanics;
    libGame_gv_minion_CapCatapults = true;
    SetTalentsEnabled(false);
    SetTalentTreePauseGameWhenSelectionPanelShown(true);
    libGame_gv_heroSpawnReady = false;

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1285

    TimerPause(libGame_gv_openTheGatesTimer, false);
    TriggerExecute(gt_ManaReminder, true, false);
    SetTalentsEnabled(true);
    UnitIssueOrder(gv_heroHealerTank, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(2145)), c_orderQueueReplace);
    UnitIssueOrder(gv_heroDemonHunter, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(2132)), c_orderQueueReplace);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:2019

    AISetFollowPingDisabled(true);
    TimerStart(libGame_gv_gameTimer, c_timerDurationInfinite, false, c_timeGame);
    SetTalentsEnabled(false);
    libGame_gf_MinionTurnOnOffCatapults(false);
    SetTalentEnabled("AbathurCombatStyleSurvivalInstincts", false);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:2059

    libNtve_gf_MakeUnitUncommandable(libStEx_gv_hERO_PlayerUnit, false);
    libNtve_gf_MakeUnitInvulnerable(libStEx_gv_hERO_PlayerUnit, false);
    SetTalentsEnabled(true);
    UnitAbilityEnable(libStEx_gv_hERO_PlayerUnit, "Hearthstone", false);
    PlayerSetState(libStEx_gv_pLAYER_01_USER, c_playerStateFidgetingEnabled, false);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmapMapScript.galaxy:666

    libGame_gv_gateTimerReady = false;
    libGame_gv_minion_CapCatapults = true;
    SetTalentsEnabled(false);
    libNtve_gf_CreateActorAtPoint("MMController", RegionGetCenter(RegionEntireMap()));
    libMapM_gv_mapMechanicControllerActor = libNtve_gf_ActorLastCreated();

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmapMapScript.galaxy:2153

    libStEx_gf_DisplayVOMessageGamePaused(StringExternal("Param/Value/A1AC9EDD"), libStEx_ge_SE_VOMessageType_blank, true);
    libStEx_gf_AddInGameTip(libStEx_ge_InGameTip_Talent);
    SetTalentsEnabled(true);
    libStEx_gf_SE_ShowHideTalentPortraitFlashingImage(true);
    TriggerExecute(gt_ObjectivePickTalentCreate, true, false);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmapMapScript.galaxy:291

    libCore_gv_sYSGameMode = libCore_ge_GameModes_TutorialMapMechanics;
    libGame_gv_minion_CapCatapults = true;
    SetTalentsEnabled(false);
    SetTalentTreePauseGameWhenSelectionPanelShown(true);
    libGame_gv_heroSpawnReady = false;

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmapMapScript.galaxy:1285

    TimerPause(libGame_gv_openTheGatesTimer, false);
    TriggerExecute(gt_ManaReminder, true, false);
    SetTalentsEnabled(true);
    UnitIssueOrder(gv_heroHealerTank, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(2145)), c_orderQueueReplace);
    UnitIssueOrder(gv_heroDemonHunter, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(2132)), c_orderQueueReplace);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:2019

    AISetFollowPingDisabled(true);
    TimerStart(libGame_gv_gameTimer, c_timerDurationInfinite, false, c_timeGame);
    SetTalentsEnabled(false);
    libGame_gf_MinionTurnOnOffCatapults(false);
    SetTalentEnabled("AbathurCombatStyleSurvivalInstincts", false);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:2059

    libNtve_gf_MakeUnitUncommandable(libStEx_gv_hERO_PlayerUnit, false);
    libNtve_gf_MakeUnitInvulnerable(libStEx_gv_hERO_PlayerUnit, false);
    SetTalentsEnabled(true);
    UnitAbilityEnable(libStEx_gv_hERO_PlayerUnit, "Hearthstone", false);
    PlayerSetState(libStEx_gv_pLAYER_01_USER, c_playerStateFidgetingEnabled, false);

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:1876

        libAREN_gf_UIDebugPanelSpawnOrSwapHeroForPlayer(lv_itPlayer);
    }
    SetTalentsEnabled(true);
    Wait(1.0, c_timeGame);
    libGame_gv_announcement_SystemEnabled = true;

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:1287

    }

    SetTalentsEnabled(false);
    libGame_gv_gameOver_DetermineWinningTeamHasRun = true;
    if ((lp_victory == true)) {

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:1404

    }

    SetTalentsEnabled(false);
    libGame_gv_gameOver_DetermineWinningTeamHasRun = true;
    if ((lp_victory == true)) {

mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmodbase.stormdata/LibLNYF.galaxy:793

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerEnable(libGame_gt_TeamAbandonedTheGameTimerExpires, false);
    SetTalentsEnabled(false);
    libCore_gv_sYSIsBrawlGame = true;
    libGame_gv_xPTrickleEnabled = false;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:19119

    }
    libGame_gf_CameraPanCameraForPlayerAndUpdateMapBoundsIfNecessary(libCore_gv_oBSERVER_ObserverUIPlayer, UnitGetPosition(EventUnit()), libGame_gv_gameOver_CameraPanTime_C, -1, 10, false);
    SetTalentsEnabled(false);
    TriggerExecute(libGame_gt_DetermineWinningTeam, true, false);
    return true;