Osiris/API/CharacterAddSkill
From Divinity Engine Wiki
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
- CharacterHasSkill
- CharacterAddTalent
- CharacterLearnedSkill
- CharacterUseSkill
- CharacterUseSkillAtPosition
- CharacterUsedSkill
- CharacterUsedSkillAtPosition
- CharacterUsedSkillOnTarget
- CharacterUsedSkillOnZoneWithTarget
- CharacterUsedSkillInTrigger
- IsSkillActive
- IsSourceSkill
- SkillActivated
- SkillAdded
- SkillCast
- SkillDeactivated