|
|
Mechanic: SetScore
|
|
|
==================
|
|
|
|
|
|
*Added in version 2.3*
|
|
|
|
|
|
## Description:
|
|
|
|
|
|
Modifies the scoreboard-objective value of a fake player name. Works
|
|
|
like the [Modify Score](/skills/mechanics/modifyscore) mechanic, but is
|
|
|
only capable of performing the **set**-action.
|
|
|
|
|
|
Attributes
|
|
|
----------
|
|
|
## Attributes:
|
|
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|-------------|---------|----------------------------------------------------------------------------------------------------------------------------------|---------|
|
... | ... | @@ -17,15 +17,14 @@ Attributes |
|
|
| name, entry | n, e | The name of the fake player | dummy |
|
|
|
|
|
|
|
|
|
Examples
|
|
|
----
|
|
|
## Examples:
|
|
|
|
|
|
This example will set the score of a player named
|
|
|
"Bob" for the objective "TestScore", even if that player doesn't exist
|
|
|
on the server.
|
|
|
It will create the objective if it does not currently exist.
|
|
|
|
|
|
Skills:
|
|
|
- setscore{o=TestScore;e=Bob;v=1} ~onInteract
|
|
|
|
|
|
```yaml
|
|
|
Skills:
|
|
|
- setscore{o=TestScore;e=Bob;v=1} ~onInteract
|
|
|
```
|
|
|
![](https://i.imgur.com/0HKvAUM.png) |
|
|
\ No newline at end of file |