• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    InventoryReservation

    InventoryReservation is returned from InventoryItem.Reservations and contains information about reserved items. Shows how many items are reserved and the purpose they were reserved for.

    Properties

    amount

    number
    ServerOnly
    ReadOnly

    The quantity of items that have been reserved.

    print("Reserved quantity: " .. reservation.amount)
    

    reservedFor

    string
    ServerOnly
    ReadOnly

    The purpose identifier for the reservation. Corresponds to the reservedFor parameter in InventoryTransaction.Reserve and Release.

    if reservation.reservedFor == "equipped" then
        print("Item is currently equipped")
    end
    

    Updated 19 days ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.