Update setvariable authored by Lxlp's avatar Lxlp
...@@ -5,15 +5,20 @@ placeholders to store data. ...@@ -5,15 +5,20 @@ placeholders to store data.
## Attributes ## Attributes
### Inheritable Attributes
| Attribute | Aliases | Description | Default | | Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------| |-----------|-----------|----------------------------------------------------------------------|---------|
| variable | name, n, var, key, k | The name of the variable. Can optionally be prefixed with `scope` | | | variable | name, n, var, key, k | The name of the variable. Can optionally be prefixed with `scope` | |
| value | val, v, amount, a | The value to set the variable to. Must be applicable for `type` or the mechanic will fail. Should be surrounded in double-quotes if using spaces. Value can also include placeholders, even from PlaceholderAPI | |
| scope | s | The [scope](/skills/variables#variable_scopes) of the variable, e.g. where the variable will be located | SKILL | | scope | s | The [scope](/skills/variables#variable_scopes) of the variable, e.g. where the variable will be located | SKILL |
| type | t | The [type](/skills/variables#variable_types) of the variable. Set to STRING if you are using text instead of numbers | INTEGER |
| save | | Whether the variable should save between reloads, reboots and disconnects. Does not apply to SKILL-scoped variables | false | | save | | Whether the variable should save between reloads, reboots and disconnects. Does not apply to SKILL-scoped variables | false |
| duration | d | How long (in ticks) the variable should last. Does not apply to SKILL-scoped variables | Infinite| | duration | d | How long (in ticks) the variable should last. Does not apply to SKILL-scoped variables | Infinite|
### Non-Inheritable Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| value | val, v, amount, a | The value to set the variable to. Must be applicable for `type` or the mechanic will fail. Should be surrounded in double-quotes if using spaces. Value can also include placeholders, even from PlaceholderAPI | |
| type | t | The [type](/skills/variables#variable_types) of the variable. Set to STRING if you are using text instead of numbers | INTEGER |
## Examples ## Examples
In this example, the target players would only hear growling from any In this example, the target players would only hear growling from any
...@@ -76,4 +81,5 @@ VariableSend: ...@@ -76,4 +81,5 @@ VariableSend:
## Aliases ## Aliases
- [x] setvar - [x] setvar
\ No newline at end of file - [x] variableset
\ No newline at end of file