Osiris/API/CharacterAddTalent: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
mNo edit summary
(CharacterAddTalent only works for characters with player data)
 
(2 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 =====
* 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|Scripting talent types]].
* 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.
* If the Talent to be added or the Character are not valid, nothing happens.
===== See Also =====
===== See Also =====
* [[Osiris/API/CharacterAddSkill|CharacterAddSkill]]
* [[Osiris/API/CharacterHasTalent|CharacterHasTalent]]
* [[Osiris/API/CharacterHasTalent|CharacterHasTalent]]
* [[Osiris/API/CharacterRemoveTalent|CharacterRemoveTalent]]
* [[Osiris/API/CharacterRemoveTalent|CharacterRemoveTalent]]
Line 12: Line 14:
* [[Osiris/API/CharacterLockedTalent|CharacterLockedTalent]]
* [[Osiris/API/CharacterLockedTalent|CharacterLockedTalent]]
    
    
[[Category:Osiris Calls]]
[[Category:Osiris Calls|CharacterAddTalent]]

Latest revision as of 11: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