# Add Player Talent

Grammar — Add Talent talent to Player player.
FlagsNative | Action

Adds the specified Talent to the Player. Validators and triggers can then test whether the player has the talent.

# Arguments

  • int — Player
  • string [ gamelink::Talent ] — Talent

Returns — void

native void PlayerAddTalent(int inPlayer, string inTalent);

Category: Player / Player Settings

# Examples

# mods/heroesbrawlmods/arenamodemods/arenashared.stormmod

LibMArS.galaxy

// L42
PlayerAddTalent(UnitGetOwner(lv_arenaHero), "MonkIronFists")
// L46
PlayerAddTalent(UnitGetOwner(lv_arenaHero), "MonkTranscendence")

# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod

LibPEB1.galaxy

// L714
PlayerAddTalent(lp_playerIndex, "DiabloTalentDominationOverpower")
// L771
PlayerAddTalent(lp_playerIndex, "StukovPushComesToShove")
// L772
PlayerAddTalent(lp_playerIndex, "StukovPushComesToShove")
// L700
PlayerAddTalent(lp_playerIndex, "DiabloTalentDominationOverpower")
// L757
PlayerAddTalent(lp_playerIndex, "StitchesMasteryShishKabobHook")
// L775
PlayerAddTalent(lp_playerIndex, "StukovPushComesToShove")

# mods/heroesdata.stormmod

GameLib.galaxy

// L11824
PlayerAddTalent(lp_player, libGame_gv_talents_TalentChoices[lp_player][lp_tierIndex].lv_talentData[lp_buttonIndex].lv_talentCatalogLink)

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L1638
PlayerAddTalent(lp_player, lp_talent)