Difference between revisions of "Osiris/API/CharacterAddSkill"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented CharacterAddSkill)
 
m
Line 28: Line 28:
 
* [[Osiris/API/SkillDeactivated|SkillDeactivated]]
 
* [[Osiris/API/SkillDeactivated|SkillDeactivated]]
 
    
 
    
[[Category:Osiris Calls|CharacterAddTalent]]
+
[[Category:Osiris Calls|CharacterAddSkill]]

Revision as of 21:29, 22 February 2018

Full Definition(s)
  • Helper proc CharacterAddSkill((CHARACTERGUID)_Character, (STRING)_Skill)
  • call CharacterAddSkill((CHARACTERGUID)_Character, (STRING)_Skill, (INTEGER)_ShowNotification)
Description

Adds _Skill to _Character. If _ShowNotification is 1 and _Character did not yet know this skill (or only currently knew it because it was granted by e.g. an equipped item), then a notification will be shown that it has learned the skill. If _ShowNotification is 0, no notification will ever be shown.

If _ShowNotification is not specified, it will default to 1.

Notes
  • The skill names are defined in the stats.
  • If the Talent to be added or the Character are not valid, nothing happens.
  • The _ShowNotification parameter is new in DOS2 Patch 6.
See Also