RPG: Allocate Point
Rpg
Action
Portent preview
Pro
Engagement
Inputs
in | Exec | exec | multiplexed |
- Name
- in
- Kind
- Exec
- Type
- exec
- Flags
- multiplexed
Outputs
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
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);