Difference between revisions of "Talk:OnDrop"
Jump to navigation
Jump to search
Some Test results
imported>Haama (Remote container note) |
imported>QQuix (Some Test results) |
||
Line 1: | Line 1: | ||
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.--[[User:Haama|Haama]] 12:37, 19 July 2008 (EDT) | 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.--[[User:Haama|Haama]] 12:37, 19 July 2008 (EDT) | ||
====Some Test results==== | |||
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 ([[User:QQuix/On Dynamic Items and Savegame Bloating|here]]) | |||
I thought they should also be reported here, to be confirmed/denied/discussed by the community. [[User:QQuix|QQuix]] 22:28, 28 September 2008 (EDT) |