|
**Description**: sets the probability of the metaskill being executed.
|
|
## Description
|
|
|
|
Sets the probability of the metaskill being executed.
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## Attributes
|
|
|
|
|
|
**Attributes**
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
|
| chance | c | The floating value which denotes the chance. It can range between 0 and 1, with 0 being a 0% chance and 1 being a 100% chance | 0.5 |
|
|
|
|
|
|
| Attribute | Alias | Description | Default |
|
|
## Examples
|
|
|-----------|-------------|-------------------------------------------------------------------------------------------------|---------|
|
|
|
|
| chance | | The floating value which denotes the chance. It can range between 0 and 1, with 0 being a 0% chance and 1 being a 100% chance| 0 |
|
|
|
|
|
|
|
|
Examples
|
|
|
|
---
|
|
|
|
In this example, the metaskill will be executed only 30% of the times it has been triggered, on average.
|
|
In this example, the metaskill will be executed only 30% of the times it has been triggered, on average.
|
|
```yml
|
|
```yaml
|
|
Conditions:
|
|
Conditions:
|
|
- chance{chance=0.3} true
|
|
- chance{chance=0.3} true
|
|
```
|
|
```
|
|
|
|
|
|
In this other example, the metaskill will be instead triggered 70% of the times it has been triggered
|
|
In this other example, the metaskill will be instead triggered 70% of the times it has been triggered
|
|
```yml
|
|
```yaml
|
|
Conditions:
|
|
Conditions:
|
|
- chance{chance=0.3} false
|
|
- chance{chance=0.3} false
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |