Difference between revisions of "Osiris/API/CharacterAddTalent"

From Divinity Engine Wiki
Jump to: navigation, search
(CharacterAddTalent only works for characters with player data)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
* call '''CharacterAddTalent'''(''(CHARACTERGUID)'''''_Character''', ''(STRING)'''''_Talent''')
 
* call '''CharacterAddTalent'''(''(CHARACTERGUID)'''''_Character''', ''(STRING)'''''_Talent''')
 
===== Description =====
 
===== Description =====
Adds '''_Talent''' to '''_Character'''.
+
Adds '''_Talent''' to player character '''_Character'''.
 
===== Notes =====
 
===== Notes =====
* The list of talents can be found here: [[Scripting_talent_types]].
+
* This call only works for characters with player data (characters that are a player, or at one point were a player during the current game).
* If the Talent added or the Character isn't valid, nothing happens.
+
* The list of talents can be found here: [[Scripting_talent_types|Scripting talent types]].
 +
* If the Talent to be added or the Character are not valid, nothing happens.
 
===== See Also =====
 
===== See Also =====
* [[Osiris/API/CharacterHasTalent]]
+
* [[Osiris/API/CharacterAddSkill|CharacterAddSkill]]
* [[Osiris/API/CharacterRemoveTalent]]
+
* [[Osiris/API/CharacterHasTalent|CharacterHasTalent]]
* [[Osiris/API/CharacterUnlockedTalent]]
+
* [[Osiris/API/CharacterRemoveTalent|CharacterRemoveTalent]]
* [[Osiris/API/CharacterLockedTalent]]
+
* [[Osiris/API/CharacterUnlockedTalent|CharacterUnlockedTalent]]
 +
* [[Osiris/API/CharacterLockedTalent|CharacterLockedTalent]]
 
    
 
    
[[Category:Osiris Calls]]
+
[[Category:Osiris Calls|CharacterAddTalent]]

Latest revision as of 12:22, 17 September 2018

Full Definition(s)
  • call CharacterAddTalent((CHARACTERGUID)_Character, (STRING)_Talent)
Description

Adds _Talent to player character _Character.

Notes
  • This call only works for characters with player data (characters that are a player, or at one point were a player during the current game).
  • The list of talents can be found here: Scripting talent types.
  • If the Talent to be added or the Character are not valid, nothing happens.
See Also