Osiris/API/ItemTemplateMoved: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
(Documented ItemTemplateMoved)
(No difference)

Revision as of 14:33, 1 July 2018

Full Definition(s)
  • event ItemTemplateMoved((STRING)_ItemTemplate, (ITEMGUID)_Item)
Description

Thrown under the same conditions as ItemMoved, but additionally also provides the root template of the moved item.

Parameters
  • _ItemTemplate: The root template of the moved item in the format TemplateName_UUID.
  • _Item: The item that moved.
Notes
  • See ItemMoved.
  • There is one corner case in which the ItemMoved event gets thrown, but not this event: if code cannot find the root template of the moved item. This might happen if a root template was deleted of an item that already existed in a savegame. Doing so is not allowed though, so in normally this will never happen.
See Also