Skip to content

Commit a2a9649

Browse files
added points sub-actions (#436)
1 parent 2a7f270 commit a2a9649

18 files changed

Lines changed: 498 additions & 0 deletions
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: Get Points Definition
3+
description: Fetch the current points definition for a specific point
4+
version: 1.1.0
5+
parameters:
6+
- name: Point Definition
7+
type: Select
8+
required: true
9+
default: None
10+
description: Choose the point definition you want to fetch
11+
- name: Destination Variable
12+
type: string
13+
description: The variable to store the fetched points definition
14+
csharpMethods:
15+
- GetPointDefinition
16+
- GetPointDefinitions
17+
---
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Reset Points Definition
3+
description: Reset the points definition for a specific point
4+
version: 1.1.0
5+
parameters:
6+
- name: Point Definition
7+
type: Select
8+
required: true
9+
default: None
10+
description: Choose the point definition you want to reset
11+
csharpMethods:
12+
- ResetPointDefinition
13+
---
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Award Points to All
3+
description: Award points to all users
4+
version: 1.1.0
5+
parameters:
6+
- name: Point Definition
7+
type: Select
8+
required: true
9+
default: None
10+
description: Choose the point definition you want to award points for
11+
- name: Amount
12+
type: number
13+
required: true
14+
default: 0
15+
description: The amount of points to award to all users (supports variables)
16+
- name: Platform
17+
type: string
18+
description: The platform to award points for (leave blank for all platforms)
19+
- name: Only Award to Active Users
20+
type: checkbox
21+
description: If checked, it will only award points to active users
22+
- name: Apply User/Group Multipliers
23+
type: checkbox
24+
description: If checked, it will apply any user/group multipliers to the awarded points
25+
csharpMethods:
26+
- AwardPointsToAll
27+
---
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Award Points to Group
3+
description: Award points to all users in the specified group
4+
version: 1.1.0
5+
parameters:
6+
- name: Point Definition
7+
type: Select
8+
required: true
9+
default: None
10+
description: Choose the point definition you want to award points for
11+
- name: Group
12+
type: Select
13+
required: true
14+
default: None
15+
description: Choose the group you want to award points to (supports variables)
16+
- name: Amount
17+
type: number
18+
required: true
19+
default: 0
20+
description: The amount of points to award to all users (supports variables)
21+
- name: Apply User/Group Multipliers
22+
type: checkbox
23+
description: If checked, it will apply any user/group multipliers to the awarded points
24+
csharpMethods:
25+
- AwardPointsToGroup
26+
---
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Get Group Multiplier
3+
description: Fetch the multiplier for a specific group
4+
version: 1.1.0
5+
parameters:
6+
- name: Point Definition
7+
type: Select
8+
required: true
9+
default: None
10+
description: Choose the point definition you want to fetch the group multiplier for
11+
- name: Group
12+
type: Select
13+
required: true
14+
default: None
15+
description: Choose the group you want to fetch the multiplier for (supports variables)
16+
- name: Destination Variable
17+
type: string
18+
description: The variable to store the fetched group multiplier
19+
csharpMethods:
20+
- GetGroupMultiplier
21+
---
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Remove Group Multiplier
3+
description: Remove the multiplier for a specific group
4+
version: 1.1.0
5+
parameters:
6+
- name: Point Definition
7+
type: Select
8+
required: true
9+
default: None
10+
description: Choose the point definition you want to remove the group multiplier for
11+
- name: Group
12+
type: Select
13+
required: true
14+
default: None
15+
description: Choose the group you want to remove the multiplier for
16+
csharpMethods:
17+
- RemoveGroupMultiplier
18+
---
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Set Group Multiplier
3+
description: Set the multiplier for a specific group
4+
version: 1.1.0
5+
parameters:
6+
- name: Point Definition
7+
type: Select
8+
required: true
9+
default: None
10+
description: Choose the point definition you want to set the group multiplier for
11+
- name: Group
12+
type: Select
13+
required: true
14+
default: None
15+
description: Choose the group you want to set the multiplier for (supports variables)
16+
- name: Multiplier
17+
type: number
18+
required: true
19+
default: 1.0
20+
description: The multiplier for the selected group (supports variables)
21+
csharpMethods:
22+
- SetGroupMultiplier
23+
---
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Get Points Leaderboard
3+
description: Fetch the points leaderboard for a specific point definition
4+
version: 1.1.0
5+
parameters:
6+
- name: Point Definition
7+
type: Select
8+
required: true
9+
default: None
10+
description: Choose the point definition you want to fetch the leaderboard for
11+
- name: Count
12+
type: number
13+
required: true
14+
default: None
15+
description: The number of top users to fetch
16+
- name: Offset
17+
type: number
18+
required: true
19+
default: 0
20+
description: The starting point for fetching the leaderboard (0-indexed, supports variables)
21+
csharpMethods:
22+
- GetLeaderboard
23+
---
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Award Points
3+
description: Award points to a specific user
4+
version: 1.1.0
5+
parameters:
6+
- name: Point Definition
7+
type: Select
8+
required: true
9+
default: None
10+
description: Choose the point definition you want to award points for
11+
- name: User
12+
type: Select
13+
required: true
14+
default: None
15+
description: The username of the user you want to award points to (supports variables)
16+
- name: platform
17+
type: String
18+
required: true
19+
default: '%userType%'
20+
description: The platform of the user you want to award points to (supports variables)
21+
- name: Amount
22+
type: number
23+
required: true
24+
default: 0
25+
description: The amount of points to award to all users (supports variables)
26+
- name: Apply User/Group Multipliers
27+
type: checkbox
28+
description: If checked, it will apply any user/group multipliers to the awarded points
29+
- name: Destination Variable
30+
type: String
31+
required: false
32+
default: userPoints
33+
description: The argument variable name to store the users points after awarding (supports variables)
34+
csharpMethods:
35+
- AddPoints
36+
---
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Check Points
3+
description: Check the points of a specific user
4+
version: 1.1.0
5+
parameters:
6+
- name: Point Definition
7+
type: Select
8+
required: true
9+
default: None
10+
description: Choose the point definition you want to check points for
11+
- name: User
12+
type: Select
13+
required: true
14+
default: None
15+
description: The username of the user you want to check points for (supports variables)
16+
- name: platform
17+
type: String
18+
required: true
19+
default: '%userType%'
20+
description: The platform of the user you want to check points for (supports variables)
21+
- name: Required Amount
22+
type: number
23+
required: true
24+
default: 0
25+
description: The minimum amount of points to check for (supports variables)
26+
- name: Break Action of Failure
27+
type: checkbox
28+
default: true
29+
description: If checked, it will break the action chain if the point check fails
30+
- name: Destination Variable
31+
type: String
32+
required: false
33+
default: userPoints
34+
description: The argument variable name to store the users points after awarding (supports variables)
35+
csharpMethods:
36+
- GetPoints
37+
---

0 commit comments

Comments
 (0)