# Can Select Hero Talent Tree
Grammar — Can Select Hero Talent Tree(player, talentTreeIndex)
Flags —Native
|Function
# Arguments
int
— Playerint
— Talent Tree Index
Returns — bool
native bool TalentTreeCanSelectHeroTalentTree(
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:1676
lv_loopIndex = 1;
for ( ; lv_loopIndex <= auto4E1F0EC0_ae ; lv_loopIndex += 1 ) {
if ((TalentTreeCanSelectHeroTalentTree(lp_trigPlayer, (lv_loopIndex + lv_numPreviousTalents)) == true)) {
lv_loopTalent = TalentTreeGetHeroTalentLink(lp_trigPlayer, (lv_loopIndex + lv_numPreviousTalents));
if ((lv_loopTalent == lp_talent)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:1719
lv_loopIndex = 1;
for ( ; lv_loopIndex <= autoC9042940_ae ; lv_loopIndex += 1 ) {
if ((TalentTreeCanSelectHeroTalentTree(lp_trigPlayer, (lv_loopIndex + lv_numPreviousTalents)) == true)) {
lv_numPossible += 1;
lv_PossibleChoices[lv_numPossible] = lv_loopIndex;