# Get Selected Hero Talent Tree

Grammar — Get Selected Hero Talent Tree(player, tier)
FlagsNative | Function

# Arguments

  • int — Player
  • int — Tier

Returns — int

native int TalentTreeGetSelectedHeroTalentTree(
	int inPlayer,
	int inTier,
);

Category: Talent Tree / Basic

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:1587

        lv_currentTalentIndex = 1;
        for ( ; lv_currentTalentIndex <= auto6EBA0B45_ae ; lv_currentTalentIndex += 1 ) {
            if ((libGame_gv_talents_TalentChoices[lp_trigPlayer][lv_currentTalentIndex].lv_selection != 0) && (libAIAI_gv_aIHeroes[lp_trigPlayer].lv_talentBuilds[lv_currentBuildIndex].lv_talents[lv_currentTalentIndex] == TalentTreeGetHeroTalentLink(lp_trigPlayer, TalentTreeGetSelectedHeroTalentTree(lp_trigPlayer, lv_currentTalentIndex)))) {
                if ((lv_currentTalentIndex == 4)) {
                    lv_currentBuildValue += 2;