Spend Points
Spend points from a specific user
Parameters
Point Definition
Select required
Default:
NoneChoose the point definition you want to spend points for
User
Select required
Default:
NoneThe username of the user you want to spend points from (supports variables)
platform
String required
Default:
%userType%The platform of the user you want to spend points from (supports variables)
Amount
number required
Default:
0The amount of points to spend from the user (supports variables)
Break action sequence if user has insufficient points
checkbox
Default:
trueIf checked, the action sequence will be broken if the user has insufficient points
Destination Variable
String
Default:
userPointsThe argument variable name to store the users points after spending (supports variables)
C# Usage
public bool SpendPoints(string userName, Platform platform, Guid pointId, long cost)