# Set Selected Hero Talent Tree
Grammar — Set Selected Hero Talent Tree(player, talentTreeIndex)
Flags —Native
|Action
# Arguments
int
— Playerint
— Talent Tree Index
Returns — void
native void TalentTreeSetSelectedHeroTalentTree(
int inPlayer,
int inTalentTreeIndex,
);
# 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/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:1646
// Automatic Variable Declarations
// Implementation
TalentTreeSetSelectedHeroTalentTree(lp_trigPlayer, lp_talentIndex);
libAIAI_gv_aIHeroes[lp_trigPlayer].lv_allowedToChooseTalentsTime = (TimerGetElapsed(libGame_gv_gameTimer) + libAIAI_gv_aIHeroChooseTalentDelayBetweenPicks);
libGame_gf_TalentsChooseTalentForPlayer(libGame_gv_talents_ActiveChoiceTierForPlayer[lp_trigPlayer], lp_buttonIndex, lp_trigPlayer);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:1775
for ( ; ( (auto4871E4B0_ai >= 0 && lv_itTier <= auto4871E4B0_ae) || (auto4871E4B0_ai < 0 && lv_itTier >= auto4871E4B0_ae) ) ; lv_itTier += auto4871E4B0_ai ) {
ShowTalentPanel(libCore_gv_playerGroupFromPlayer[libStEx_gv_pLAYER_01_USER], true, lv_itTier);
TalentTreeSetSelectedHeroTalentTree(libStEx_gv_pLAYER_01_USER, (libStEx_gv_talents_TalentChoices[lv_itTier].lv_selection + lv_numPreviousTalents));
libGame_gf_TalentsChooseTalentForPlayer(lv_itTier, libStEx_gv_talents_TalentChoices[lv_itTier].lv_selection, libStEx_gv_pLAYER_01_USER);
if ((libStEx_gv_talents_TalentChoices[lv_itTier].lv_selection <= 0)) {