# Set Talent Tree Hero Level
Grammar — Set Talent Tree Hero Level(player, heroLevel)
Flags —Native
|Action
# Arguments
int
— Playerint
— Hero Level
Returns — void
native void SetTalentTreeHeroLevel(
int inPlayer,
int inLevel,
);
# 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/GameLib.galaxy:10468
}
if ((libCore_gv_sYSTalentsOn == true)) {
SetTalentTreeHeroLevel(lv_player, lv_level);
libGame_gf_TalentsUpdateChoicePanelForPlayer(lv_player);
if ((libCore_gv_tUTTalentsAutobuyOn == true) && (libGame_gv_talents_ActiveChoiceTierForPlayer[lv_player] != 0) && (libGame_gv_talents_TalentChoices[lv_player][libGame_gv_talents_ActiveChoiceTierForPlayer[lv_player]].lv_selection == 0)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:10652
}
SetTalentTreeHeroLevel(lp_player, 0);
libGame_gf_LevelUpHero(libGame_gv_players[lp_player].lv_heroUnit);
libUIUI_gf_UIObserverUIAddPlayerToObserverUI(lp_player);
mods/heromods/chogall.stormmod — base.stormdata/LibHCHO.galaxy:1776
libGame_gf_GrantXPToPlayer(UnitGetPropertyFixed(libGame_gv_players[lv_choPlayer].lv_heroUnit, c_unitPropXP, c_unitPropCurrent), lv_gallPlayer, libGame_ge_XPSources_Debug);
libGame_gf_TalentsSetupTalentChoicesFromHeroDataForPlayer(libGame_gv_players[lv_gallPlayer].lv_heroIndex, lv_gallPlayer);
SetTalentTreeHeroLevel(lv_gallPlayer, 0);
libGame_gf_LevelUpHero(libGame_gv_players[lv_gallPlayer].lv_heroUnit);
libUIUI_gf_UIObserverUIAddPlayerToObserverUI(lv_gallPlayer);
mods/heromods/dva.stormmod — base.stormdata/LibHDVA.galaxy:252
}
SetTalentTreeHeroLevel(lp_player, 0);
libGame_gf_LevelUpHero(libGame_gv_players[lp_player].lv_heroUnit);
libUIUI_gf_UIObserverUIAddPlayerToObserverUI(lp_player);