Skip to main content
Corvus Connection

RPG: Allocate Point

Rpg
Action
Portent preview
Pro
rpg.allocatePointSpends allocation points into a stat, or into Fortune when the stat is left blank, for a joined viewer, bounded by the soft per-stat cap. Set the stat and how many points in the parameters. Defaults to the triggering viewer; set userId to target a specific viewer. Safely no-ops over the cap, over the unspent pool, or when not joined.Spends points into a stat or Fortune for a viewer; binds ok / unspentPoints.
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
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
stat
System.String
no
""
None
amount
System.Int32
no
1
None
userId
System.String
no
""
None
  • Name
    stat
    Type
    System.String
    Required
    no
    Default
    ""
    Choices
    None
  • Name
    amount
    Type
    System.Int32
    Required
    no
    Default
    1
    Choices
    None
  • Name
    userId
    Type
    System.String
    Required
    no
    Default
    ""
    Choices
    None

Lowers to C#

var allocate = await ctx.Rpg.Characters.AllocatePointAsync(userId, stat, amount);