Difference between revisions of "Talk:OnContainerChanged - ObjectReference"
Jump to navigation
Jump to search
Talk:OnContainerChanged - ObjectReference (edit)
Revision as of 17:39, 2 April 2015
, 17:39, 2 April 2015→Bugs with Stacked Items: Maybe this isn't as broken as initially reported
imported>Fg109 |
imported>DavidJCobb (→Bugs with Stacked Items: Maybe this isn't as broken as initially reported) |
||
Line 5: | Line 5: | ||
Does anyone have any suggestions as to how to summarize that for the wiki page? - [[User:Chesko|Chesko]] | Does anyone have any suggestions as to how to summarize that for the wiki page? - [[User:Chesko|Chesko]] | ||
:I haven't been able to reproduce your results. Here are my observations with an item that had an OnContainerChanged event attached: | |||
:*A preplaced item that is rapidly picked up and dropped ten times in a row will fire twenty OnContainerChanged events, as expected. | |||
:*Adding 12345 copies of an item via the console fires one OnContainerChanged event, as if you picked up a single stack (ObjectReference). | |||
:*Dropping 12345 copies of an item, in a single operation, produces two in-world ObjectReferences (one of them is a stack of 12344, while the other is a single item), both of which fire an OnContainerChanged event for being dropped. | |||
:*Picking up two preplaced copies of the item, one rapidly after another, produces two OnContainerChanged events. | |||
:*Dropping two copies of the item, in two separate operations, one rapidly after another, produces two OnContainerChanged events. | |||
:The script I attached to the test item is as follows: | |||
<source lang="papyrus">Scriptname AtronachCrossingTESTOnContainerChg extends ObjectReference Hidden | |||
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer) | |||
Debug.Trace(Self + " contained changed from " + akOldContainer + " to " + akNewContainer) | |||
EndEvent | |||
</source> | |||
:[[User:DavidJCobb|DavidJCobb]] ([[User talk:DavidJCobb|talk]]) 2015-04-02T18:39:30 (EDT) | |||
== Script for Quest Stage Advancing Using OnContainerChanged == | == Script for Quest Stage Advancing Using OnContainerChanged == |