Skip to main content
Corvus Connection

RPG: Run Encounter

Rpg
Action
Portent preview
Pro
rpg.runEncounterResolves a named encounter for a viewer (built-in roll or graph-routed). Defaults to the triggering viewer; set userId to target a specific viewer. Safely no-ops when the viewer has not joined or the encounter is unknown.Resolves the named encounter; binds won / routed / total / difficultyClass and the loot fields on a win.
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
won
Data
System.Boolean
multiplexed
routed
Data
System.Boolean
multiplexed
total
Data
System.Int32
multiplexed
difficultyClass
Data
System.Int32
multiplexed
gotLoot
Data
System.Boolean
multiplexed
lootItemName
Data
System.String
multiplexed
lootRarity
Data
System.String
multiplexed
  • Name
    out
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    won
    Kind
    Data
    Type
    System.Boolean
    Flags
    multiplexed
  • Name
    routed
    Kind
    Data
    Type
    System.Boolean
    Flags
    multiplexed
  • Name
    total
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    difficultyClass
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    gotLoot
    Kind
    Data
    Type
    System.Boolean
    Flags
    multiplexed
  • Name
    lootItemName
    Kind
    Data
    Type
    System.String
    Flags
    multiplexed
  • Name
    lootRarity
    Kind
    Data
    Type
    System.String
    Flags
    multiplexed

Parameters

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

Lowers to C#

var fight = await ctx.Rpg.Encounters.FightAsync(userId, encounterSlug);