Difference between revisions of "AddInventoryEventFilter - ObjectReference"

Jump to navigation Jump to search
m
adjustments for further clarity
imported>JLundin
imported>Egocarib
m (adjustments for further clarity)
Line 4: Line 4:
'''Member of:''' [[ActiveMagicEffect Script]], [[ReferenceAlias Script]], [[ObjectReference Script]]
'''Member of:''' [[ActiveMagicEffect Script]], [[ReferenceAlias Script]], [[ObjectReference Script]]


Adds a form as a "filter" for [[OnItemAdded - ObjectReference|OnItemAdded]] and [[OnItemRemoved - ObjectReference|OnItemRemoved]] events sent to this object. The filter is applied separately to the reference, any aliases, and any magic effects on the reference, so each will need to add filters to themselves independently.
Adds a form as a "filter" for [[OnItemAdded - ObjectReference|OnItemAdded]] and [[OnItemRemoved - ObjectReference|OnItemRemoved]] events sent to this object. The filter will be applied ''only'' to the ''specific'' Reference, Alias, or Active Magic Effect it is added to, so each will need to have filters applied to them independently.


== Syntax ==
== Syntax ==
Line 25: Line 25:


== Notes ==
== Notes ==
The filter will only check inventory objects directly against the objects in the form list, and will not dig inside nested lists to find them.
*The filter will only check inventory objects directly against the objects in the form list, and will not dig inside nested lists to find them.
*New filters that are added stack with any previous filters. If you intend to override previous filters you will need to remove them first.


== See Also ==
== See Also ==
Anonymous user

Navigation menu