# Set Talents Enabled
Grammar — Set Talents Enabled(enabled)
Flags —Native
|Action
If the Talent system is disabled the talent selection UI will not be available.
# Arguments
bool
<preset::Enable_Disable_Option> — Enabled
Returns — void
native void SetTalentsEnabled(bool inRequired);
# Related
Category: Talent Tree / Basic
- Get Hero Talent Link —
string
<gamelink::Talent> — TalentTreeGetHeroTalentLink - Can Select Hero Talent Tree —
bool
— TalentTreeCanSelectHeroTalentTree - Set Selected Hero Talent Tree —
void
— TalentTreeSetSelectedHeroTalentTree - Get Selected Hero Talent Tree —
int
— TalentTreeGetSelectedHeroTalentTree - Get Selected Hero Talent Tree Column —
int
— TalentTreeGetSelectedHeroTalentTreeColumn - Talent Tree Is Allowed —
bool
— TalentTreeAllowed - Talent Tree Clear Tier —
void
— TalentTreeClearTier - Set Talent Tier Enabled —
void
— SetTalentTierEnabled - Set Talent Upgrade Required —
void
— SetTalentUpgradeRequired - Set Talents Enabled —
void
— SetTalentsEnabled - Set Talent Tree Selection Panel Dismiss Allowed —
void
— SetTalentTreeSelectionPanelDismissAllowed - Set Talent Tree Selection Panel Auto Show —
void
— SetTalentTreeSelectionPanelAutoShow - Set Talent Tree Pause Game When Selection Panel Shown —
void
— SetTalentTreePauseGameWhenSelectionPanelShown - Set Talent Tree Hero Level —
void
— SetTalentTreeHeroLevel - HeroTalent Tree Selected —
void
— TriggerAddEventHeroTalentTreeSelected - HeroTalent Tree Selection Panel Shown —
void
— TriggerAddEventHeroTalentTreeSelectionPanelShown - HeroTalent Tree Selection Panel Hidden —
void
— TriggerAddEventHeroTalentTreeSelectionPanelHidden
# Examples
mods/heroes.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.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.stormmod/base.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.stormmod/base.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.stormmod/base.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.stormmod/base.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.stormmod/base.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/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.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.stormmod — base.stormdata/LibPVEB.galaxy:1287
}
SetTalentsEnabled(false);
libGame_gv_gameOver_DetermineWinningTeamHasRun = true;
if ((lp_victory == true)) {
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1404
}
SetTalentsEnabled(false);
libGame_gv_gameOver_DetermineWinningTeamHasRun = true;
if ((lp_victory == true)) {
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:793
TriggerEnable(TriggerGetCurrent(), false);
TriggerEnable(libGame_gt_TeamAbandonedTheGameTimerExpires, false);
SetTalentsEnabled(false);
libCore_gv_sYSIsBrawlGame = true;
libGame_gv_xPTrickleEnabled = false;
mods/heroesdata.stormmod — base.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;