Scoreboards & teams · Step
Keep a score in range
Pull someone's score up to a lowest or down to a highest number if it is outside them.
m.score.clamp
In a flow
“When a player takes damage → Take from a score: lives → Keep a score in range: lives, 0 to 5.”
When a player takes damage → Take from a score: lives → Keep a score in range: lives, 0 to 5.
What it does
Pull someone's score up to a lowest or down to a highest number if it is outside them. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 1 value later steps can use. Find it under Scoreboards & teams in the palette.
When to use it
Use it when the flow needs to: pull someone's score up to a lowest or down to a highest number if it is outside them.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Objective Text
-
The objective's name, like kills or coins. Letters, numbers and _ only.
What goes there: Type it in the side panel, or wire in text. e.g. Hello there
If it's empty: Optional. Left empty and unwired, it uses kills.
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 845 more
- Who Text
-
Whose score: a player's name or any word, like {player.name} or #global. Variables allowed.
What goes there: Type it in the side panel, or wire in text. e.g. Hello there
If it's empty: Optional. Left empty and unwired, it uses {player.name}.
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 845 more
- Lowest Number
-
The score can't stay below this.
What goes there: Type it in the side panel, or wire in a number. e.g. 42
If it's empty: Optional. Left empty and unwired, it uses 0.
Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 501 more
- Highest Number
-
The score can't stay above this.
What goes there: Type it in the side panel, or wire in a number. e.g. 42
If it's empty: Optional. Left empty and unwired, it uses 100.
Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 501 more
Values it gives
- Score Number
-
Their score after it. e.g. 5
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more