Skip to main content
Corvus Connection

RPG: Get Inventory

Rpg
Query
Portent preview
Pro
rpg.getInventoryReads a viewer's inventory holdings. Defaults to the triggering viewer; set userId to target a specific viewer. Safely reports empty when the viewer has not joined.Awaits the viewer's inventory; binds count / isEmpty.
Engagement

Inputs

Name
Kind
Type
Flags
in
Exec
exec
multiplexed
  • Name
    in
    Kind
    Exec
    Type
    exec
    Flags
    multiplexed

Outputs

Name
Kind
Type
Flags
out
Exec
exec
None
count
Data
System.Int32
multiplexed
isEmpty
Data
System.Boolean
multiplexed
  • Name
    out
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    count
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    isEmpty
    Kind
    Data
    Type
    System.Boolean
    Flags
    multiplexed

Parameters

Name
Type
Required
Default
Choices
userId
System.String
no
""
None
  • Name
    userId
    Type
    System.String
    Required
    no
    Default
    ""
    Choices
    None

Lowers to C#

var inventory = await ctx.Rpg.Characters.GetInventoryAsync(userId);