Osiris/API/ItemInsertRune

From Divinity Engine Wiki
Jump to: navigation, search
Full Definition(s)
  • call ItemInsertRune((CHARACTERGUID)_Character, (ITEMGUID)_Item, (STRING)_Template, (INTEGER)_Slot)
Description

Inserts a rune whose kind is identified by _Template into rune slot _Slot of _Item. If _Character is valid, then if the item already contained a rune in that slot, this rune will be returned to the character's inventory.

See ItemGetRuneItemTemplate for the interpretation of the _Slot parameter.

Notes
  • This call does nothing if _Item is invalid, _Template is not an item root template for a rune, or if _Slot is >= the number of rune slots in _Item.
  • This call is new in DOS2 Patch 6.
See Also