added example authored by Lxlp's avatar Lxlp
...@@ -14,9 +14,25 @@ Attributes ...@@ -14,9 +14,25 @@ Attributes
Examples Examples
-------- --------
Skills:
- freeze{ticks=100} @trigger ~onAttack
Freezes the entity that the mob using this skill is attacking for 100 Freezes the entity that the mob using this skill is attacking for 100
ticks (5 seconds). ticks (5 seconds).
\ No newline at end of file ```yaml
Skills:
- freeze{ticks=100} @trigger ~onAttack
```
It's possible that the method above may not work due to how the game handles the freezing status. In case that happens, it's still possible to do something like the following
```yaml
#Inline version for premium users
Freeze_CauseFreezeEffect_Inline:
Skills:
- aura{d=100;i=1;onTick=[ - freeze{ticks=280} - damage{a=1;cd=2;damagecause=FREEZE} ]} @self
#Normal version
Freeze_CauseFreezeEffect_Normal:
Skills:
- aura{d=100;i=1;onTick=Freeze_CauseFreezeEffect_Normal_onTick} @self
Freeze_CauseFreezeEffect_Normal_onTick:
Skills:
- freeze{ticks=280}
- damage{a=1;cd=2;damagecause=FREEZE}
```
\ No newline at end of file