Changes
Page history
added aliases & changed layout
authored
May 10, 2023
by
Lxlp
Hide whitespace changes
Inline
Side-by-side
Skills/Mechanics/DealCustomDurability.md
View page @
85c1a52b
Mechanic: DealCustomDurability
## Description
================
Modifies the custom durability of the held item.
Modifies the held item durability.
## Attributes
Attributes
----------
| Attribute | Aliases | Description | Default |
| Attribute | Aliases | Description | Default |
|
:
---------
:|:
-------
:|:
-------------------------
:|:
-------
:
|
|
--
---------
|--
-------
|--
-------------------------
|
-------
--
|
| a
|
| Adds/Subtracts durability |
|
| a
mount
|
a
| Adds/Subtracts durability |
1
|
Examples
## Examples
--------
A positive number will deal damage, a negative number will heal it.
A positive number will deal damage, a negative number will heal it.
**Note:**
Only works for custom durability.
**Note:**
Only works for custom durability.
...
@@ -26,4 +22,8 @@ MyItem:
...
@@ -26,4 +22,8 @@ MyItem:
Skills
:
Skills
:
-
dealcustomdurability{a=2} @Self ~onUse
# damages an item by 2 durability.
-
dealcustomdurability{a=2} @Self ~onUse
# damages an item by 2 durability.
-
dealcustomdurability{a=-2} @Self ~onSwing
# repairs 2 durability on an item.
-
dealcustomdurability{a=-2} @Self ~onSwing
# repairs 2 durability on an item.
```
```
\ No newline at end of file
## Aliases
-
[x] dealdura
-
[x] customdura
\ No newline at end of file