Skip to content

InventoryTransfer ​

record in OpalScript

Immutable result of Inventory.TransferTo.

Properties ​

MemberDescription
InventoryTransfer.AppliedTrue when this command moved items from this inventory to the target.
InventoryTransfer.ItemThe item name this command named.
InventoryTransfer.AmountCount transferred. 0 when refused.
InventoryTransfer.SourceBeforeThis inventory's stack count before the transfer.
InventoryTransfer.SourceAfterThis inventory's stack count after the transfer.
InventoryTransfer.TargetBeforeThe target inventory's stack count before the transfer.
InventoryTransfer.TargetAfterThe target inventory's stack count after the transfer.
InventoryTransfer.ReasonEmpty when Applied. Otherwise removed, invalid-item, invalid-count, missing-target, same-inventory, insufficient-items, full, count-overflow, or data-limit.
InventoryTransfer.OperationIdIdentity of this command.
InventoryTransfer.SourceIdThe object that owns this Inventory.
InventoryTransfer.TargetIdThe object that owns the destination Inventory.

See also ​