Skip to content

InventoryChange ​

record in OpalScript

Immutable result of Inventory.Add and Inventory.Remove.

Properties ​

MemberDescription
InventoryChange.AppliedTrue when this command committed a stack change.
InventoryChange.ItemThe item name this command named.
InventoryChange.AmountCount added or removed. 0 when refused.
InventoryChange.PreviousCountStack count before this command.
InventoryChange.RemainingCountStack count after this command.
InventoryChange.ReasonEmpty when Applied. Otherwise removed, invalid-item, invalid-count, full, insufficient-items, count-overflow, or data-limit.
InventoryChange.OperationIdIdentity of this command.
InventoryChange.SourceIdThe caller.
InventoryChange.TargetIdThe object that owns this Inventory.

See also ​