Osiris/API/CharacterRemoveAttribute: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
(Documented CharacterRemoveAttribute)
 
mNo edit summary
 
Line 2: Line 2:
* call '''CharacterRemoveAttribute'''(''(CHARACTERGUID)'''''_Character''', ''(STRING)'''''_Attribute''', ''(INTEGER)'''''_Value''')
* call '''CharacterRemoveAttribute'''(''(CHARACTERGUID)'''''_Character''', ''(STRING)'''''_Attribute''', ''(INTEGER)'''''_Value''')
===== Description =====
===== Description =====
Subtracts '''_Value''' number of attribute pointsfrom the attribute '''_Attribute''' of character '''_Character'''.
Subtracts '''_Value''' number of attribute points from the attribute '''_Attribute''' of character '''_Character'''.
===== Notes =====
===== Notes =====
* See [[Osiris/API/CharacterGetAttribute|CharacterGetAttribute]] for the list of valid attribute names.
* See [[Osiris/API/CharacterGetAttribute|CharacterGetAttribute]] for the list of valid attribute names.

Latest revision as of 21:43, 21 May 2018

Full Definition(s)
  • call CharacterRemoveAttribute((CHARACTERGUID)_Character, (STRING)_Attribute, (INTEGER)_Value)
Description

Subtracts _Value number of attribute points from the attribute _Attribute of character _Character.

Notes
  • See CharacterGetAttribute for the list of valid attribute names.
  • If _Value is negative, the effect is the same as using CharacterAddAttribute with the absolute value of _Value.
  • If _Character or _Attribute are invalid, this call does nothing.
See Also