Talk:OnDrop

From the Oblivion ConstructionSet Wiki
Revision as of 21:28, 28 September 2008 by imported>QQuix (Some Test results)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The onDrop block might not fire if the item is removed to a remote container. I've noticed this with onAdd, but haven't tried onDrop.--Haama 12:37, 19 July 2008 (EDT)

Some Test results[edit source]

Some observations from a series of tests on the OnDrop block with scripted Misc Items:

This block did run in the following situations:
  • Player drops the item in game (runs OnLoad block also)
  • Player opens a container and selects the item
  • RemoveAllItems [to container in same cell] (runs immediately)
  • RemoveAllItems [to container in hidden cell] (runs after 5-60 seconds or when destination container activated)
This block did not run when items were dropped/removed by the following script functions:
  • Drop xItemObj 1 – in the NPC script (runs OnLoad block instead)
  • xNPC01.drop xItemObj 1 - in an activator script (runs OnLoad block instead)
  • Player.drop xItemObj 1 - in an activator script (runs OnLoad block instead)
  • DropMe – in the Item Script (runs OnLoad block instead)
  • RemoveMe [to container in same cell]
  • RemoveMe [to container in hidden cell]
  • RemoveItem xItemObj 1 (makes sense, as item is destroyed)
  • RemoveAllItems (makes sense, as item is destroyed)

(These results are part of a broader series of tests (here) I thought they should also be reported here, to be confirmed/denied/discussed by the community. QQuix 22:28, 28 September 2008 (EDT)