Skip to main content
Corvus Connection

RPG: Grant Points

Rpg
Action
Portent preview
Pro
rpg.grantPointsGrants unspent allocation points to a joined viewer, outside the level curve (a streamer reward). Wire the amount into amount. Defaults to the triggering viewer; set userId to target a specific viewer. Safely no-ops when the viewer has not joined.Grants the wired points to a viewer; binds ok / unspentPoints.
Engagement

Inputs

Name
Kind
Type
Flags
in
Exec
exec
multiplexed
amount
Data
System.Int32
None
  • Name
    in
    Kind
    Exec
    Type
    exec
    Flags
    multiplexed
  • Name
    amount
    Kind
    Data
    Type
    System.Int32
    Flags
    None

Outputs

Name
Kind
Type
Flags
out
Exec
exec
None
ok
Data
System.Boolean
multiplexed
unspentPoints
Data
System.Int32
multiplexed
  • Name
    out
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    ok
    Kind
    Data
    Type
    System.Boolean
    Flags
    multiplexed
  • Name
    unspentPoints
    Kind
    Data
    Type
    System.Int32
    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 grant = await ctx.Rpg.Characters.GrantPointsAsync(userId, amount);