Changes
Page history
added stat attribute
authored
Dec 28, 2025
by
Lxlp
Hide whitespace changes
Inline
Side-by-side
Skills/Mechanics/ModifyResource.md
View page @
05673718
...
@@ -6,7 +6,8 @@ Adds the specified amount to the target player's given reagent. The amount can b
...
@@ -6,7 +6,8 @@ Adds the specified amount to the target player's given reagent. The amount can b
| Attribute | Aliases | Description | Default |
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
|-----------|-----------|----------------------------------------------------------------------|---------|
| resource | reagent, res, r | The reagent to modify | Mana
<!--type:Reagent-->
|
| resource | reagent, res, r | The reagent to modify | Mana
<!--type:Reagent-->
|
| amount | a | The amount | 1 |
| stat | | If the change in value depends solely on the value of a certain stat, you
*must*
specify which stat it is here |
<!--type:Stat-->
|
| amount | a | The amount of the change. Use only if
`stat`
was not used | 1 |
## Examples
## Examples
...
@@ -14,6 +15,10 @@ Adds the specified amount to the target player's given reagent. The amount can b
...
@@ -14,6 +15,10 @@ Adds the specified amount to the target player's given reagent. The amount can b
Skills
:
Skills
:
-
modifyresource{resource=Mana;amount=10} @NearestPlayer{r=10}
-
modifyresource{resource=Mana;amount=10} @NearestPlayer{r=10}
```
```
```
yaml
Skills
:
-
modifyresource{resource=Mana;stat=MANA_REGENERATION} @self
```
## Aliases
## Aliases
...
...
...
...