|
Mechanic: Aura
|
|
## Description
|
|
==============
|
|
|
|
Aliases: (Buff/Debuff)
|
|
|
|
|
|
|
|
The Aura mechanic acts as a status effect on the target entity, and can
|
|
The Aura mechanic acts as a status effect on the target entity, and can
|
|
trigger other skills over its duration. Auras allow you to create custom
|
|
trigger other skills over its duration. Auras allow you to create custom
|
|
status effects (i.e. buffs and debuffs) that are tracked for their
|
|
status effects (i.e. buffs and debuffs) that are tracked for their
|
|
duration and can also be used in other mechanics and conditions.
|
|
duration and can also be used in other mechanics and conditions.
|
|
|
|
|
|
Attributes
|
|
|
|
----------
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
## Attributes
|
|
|---------------------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|
|
|
| Attribute | Aliases | Description | Default |
|
|
| auraName | buffname, debuffname | Optional name, required to use associated mechanics & conditions that reference a specific aura | None |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| onStartSkill | onStart, os | Meta-Skill executed when the aura first starts. | None |
|
|
| auraName | buffname, debuffname | Optional name, required to use associated mechanics & conditions that reference a specific aura | |
|
|
| onTickSkill | onTick, ot | Meta-Skill executed every [interval] ticks on the affected entity. | None |
|
|
| onStartSkill | onStart, os | Meta-Skill executed when the aura first starts | |
|
|
| onEndSkill | onEnd, oe | Meta-Skill executed when the aura fades. | None |
|
|
| onTickSkill | onTick, ot | Meta-Skill executed every [interval] ticks on the affected entity| |
|
|
| ShowBarTimer | bartimer, bt | If set, the aura will display a bar for caster during it
|
|
| onEndSkill | onEnd, oe | Meta-Skill executed when the aura ends | |
|
|
|
|
| ShowBarTimer | bartimer, bt| If set, the aura will display a bar for caster during it | false |
|
|
|
|
| auragroup | auratype | The group of the aura. It's similar to its name | |
|
|
| Charges | c | If set, the aura will fade when it hits zero charges. Modifiable by other mechanics. | 0 |
|
|
| Charges | c | If set, the aura will fade when it hits zero charges. Modifiable by other mechanics. | 0 |
|
|
| Duration | ticks, t, d, time, t | The max duration (in ticks) the aura will persist. | 200 |
|
|
| Duration | ticks, t, d, time, t | The max duration (in ticks) the aura will persist. | 200 |
|
|
| Interval | i | How often (in ticks) the aura fires its onTick skill | 1 |
|
|
| Interval | i | How often (in ticks) the aura fires its onTick skill | 1 |
|
|
| maxStacks | ms | How many times the aura stacks on the same targeted entity if applied multiple times (4.6.0 +) | None |
|
|
| maxStacks | ms | How many times the aura stacks on the same targeted entity if applied multiple times | 1 |
|
|
| refreshDuration | rd | Makes the aura's duration refresh to the amount defined in the mechanic should the entity have the same aura applied to it again (4.6.0 +) | true |
|
|
| refreshDuration | rd | Makes the aura's duration refresh to the amount defined in the mechanic should the entity have the same aura applied to it again | true |
|
|
| mergeSameCaster | msc, mc | Merges all of the same auras applied by one entity to another into one aura (Prevents a mob from being able to stack an aura multiple times on the same entity) (4.6.0 +) | false |
|
|
| mergeSameCaster | msc, mc | Merges all of the same auras applied by one entity to another into one aura (Prevents a mob from being able to stack an aura multiple times on the same entity) | |
|
|
| mergeAll | ma | Merges all of the same auras applied by any and all entities to another into one aura (Prevents multiple mobs from being able to stack an aura multiple times on the same entity) (4.6.0 +) | false |
|
|
| mergeAll | ma | Merges all of the same auras applied by any and all entities to another into one aura (Prevents multiple mobs from being able to stack an aura multiple times on the same entity)| false |
|
|
| overwriteSameCaster | | When applied, stops all of the same auras applied on the target by the same caster and replaces them with the new aura | false |
|
|
| overwriteSameCaster | osc, oc | When applied, stops all of the same auras applied on the target by the same caster and replaces them with the new aura | false |
|
|
| overwriteAll | | When applied, stops all of the same auras applied on the target and replaces them with the new aura | false |
|
|
| overwriteAll | overwrite, ow | When applied, stops all of the same auras applied on the target and replaces them with the new aura | false |
|
|
| CancelOnGiveDamage | cogd | Cancels the aura if the entity with the aura deals any damage to another entity. | false |
|
|
| CancelOnGiveDamage | cogd | Cancels the aura if the entity with the aura deals any damage to another entity | false |
|
|
| CancelOnTakeDamage | cotd | Cancels the aura if entity with the aura takes any sort of damage. | false |
|
|
| CancelOnTakeDamage | cotd | Cancels the aura if entity with the aura takes any sort of damage|false|
|
|
| CancelOnDeath | cod | Cancels the aura if the entity with the aura dies. | true |
|
|
| CancelOnDeath | cod | Cancels the aura if the entity with the aura dies | true |
|
|
| CancelOnTeleport | cot | Cancels the aura if the entity with the aura teleports at all whether by another mechanic or server command. | false |
|
|
| CancelOnTeleport | cot | Cancels the aura if the entity with the aura teleports at all, whether by another mechanic or server command | |
|
|
| CancelOnChangeWorld | cocw | Cancels the aura if the entity with the aura changes worlds. (Most times applies to players) | false |
|
|
| CancelOnChangeWorld | cocw | Cancels the aura if the entity with the aura changes worlds. (Most times applies to players) | false |
|
|
| CancelOnSkillUse | cosu | Cancels the aura if the entity with the aura uses another skill while the aura is active. | false |
|
|
| CancelOnSkillUse | cosu | Cancels the aura if the entity with the aura uses another skill while the aura is active | false |
|
|
| CancelOnQuit | coq | Cancels the aura if the entity with the aura logs out. (Only really applies to players) | true |
|
|
| CancelOnQuit | coq | Cancels the aura if the entity with the aura logs out. (Only really applies to players) | true |
|
|
| DoEndSkillOnTerminate | desot, ares | Whether or not the aura will run onEndSkill when it's removed by auraremove mechanic | true |
|
|
| DoEndSkillOnTerminate | desot, alwaysrunendskill, ares | Whether or not the aura will run onEndSkill when it's removed by auraremove mechanic | true |
|
|
|
|
|
|
|
|
|
|
===== Special Options (4.6.0 +)=====
|
|
|
|
The **onAttack** aura type has the following options:
|
|
|
|
|
|
|
|
- All options available to Auras
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
|
|
|------------------|---------------|------------------------------------------------------------|---------------|
|
|
|
|
| onHit | oH | Skill to execute if the target hits something | NONE |
|
|
|
|
| cancelEvent | cE | Whether or not to cancel the event that triggered the aura | false |
|
|
|
|
| damageAdd | add, a | An optional static increase to the original hit's damage | 0 |
|
|
|
|
| damageSub | sub, s | An optional static decrease (or increase if negative) to the original hit's damage | 0 |
|
|
|
|
| damageMultiplier | multiplier, m | An optional multiplier on the original hit's damage to the original hit's damage | 1 |
|
|
|
|
|
|
|
|
|
|
|
|
(See example below for usage)
|
|
|
|
|
|
|
|
The **onDamaged** aura type has the following options:
|
|
|
|
|
|
|
|
- All options available to Auras
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
### ShowBarTimer Attribute
|
|
|------------------|---------------|------------------------------------------------------------|---------------|
|
|
If set to `true`, additional attributes becomes available
|
|
| onHit | oH | Skill to execute if the target is damaged | NONE |
|
|
| Attribute | Aliases | Description | Default |
|
|
| cancelEvent | cE | Whether or not to cancel the event that triggered the aura | false |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| damageSub | sub, s | An optional static decrease (or increase if negative) to the original hit's damage | 0 |
|
|
| bartimerdisplay | bartimertext | The text in the bossbar | auraname|
|
|
| damageMultiplier | multiplier, m | An optional multiplier on the original hit's damage | 1 |
|
|
| bartimercolor | | The [Color](/Mobs/BossBar#color) of the bossbar | RED |
|
|
|
|
| bartimerstyle | | The [Style](/Mobs/BossBar#style) of the bossbar | SOLID |
|
|
|
|
|
|
(See example below for usage)
|
|
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
```yaml
|
|
Skills:
|
|
Skills:
|
|
- Aura{auraName=Retributing_Light;onTick=RetributingLightDamage;interval=10;duration=240} @self
|
|
- Aura{auraName=Retributing_Light;onTick=RetributingLightDamage;interval=10;duration=240} @self
|
|
|
|
```
|
|
Gives the target (Which in this case is the entity itself) the
|
|
Gives the target (Which in this case is the entity itself) the
|
|
Retributing_Light aura that lasts 12 seconds. Every 10 ticks (or half a
|
|
Retributing_Light aura that lasts 12 seconds. Every 10 ticks (or half a
|
|
second) it will fire the RetributingLightDamage skill.
|
|
second) it will fire the RetributingLightDamage skill.
|
|
|
|
##
|
|
|
|
```yaml
|
|
Skills:
|
|
Skills:
|
|
- onDamaged{auraName=fire_shield;onHit=FireShield;duration=200;charges=5;multiplier=0.5} @self
|
|
- onDamaged{auraName=fire_shield;onHit=FireShield;duration=200;charges=5;multiplier=0.5} @self
|
|
|
|
```
|
|
In this example, the caster's next 5 hits taken in 10 seconds would
|
|
In this example, the caster's next 5 hits taken in 10 seconds would
|
|
trigger the FireShield skill targeting whatever hit them and also deal
|
|
trigger the FireShield skill targeting whatever hit them and also deal
|
|
50% damage. However, if FireShield's conditions failed, it would deal
|
|
50% damage. However, if FireShield's conditions failed, it would deal
|
|
regular damage as the multiplier would not trigger either.
|
|
regular damage as the multiplier would not trigger either.
|
|
|
|
##
|
|
|
|
```yaml
|
|
Skills:
|
|
Skills:
|
|
- onAttack{auraName=fiery_strikes;onHit=FireStrike;duration=200;charges=5;multiplier=2} @self
|
|
- onAttack{auraName=fiery_strikes;onHit=FireStrike;duration=200;charges=5;multiplier=2} @self
|
|
|
|
```
|
|
In this example, the caster's next 5 physical hits within 10 seconds
|
|
In this example, the caster's next 5 physical hits within 10 seconds
|
|
would trigger the FireStrike skill targeting whatever was hit and also
|
|
would trigger the FireStrike skill targeting whatever was hit and also
|
|
deal 200% damage. However, if FireStrike's conditions failed, it would
|
|
deal 200% damage. However, if FireStrike's conditions failed, it would
|
|
deal regular damage as the multiplier would not trigger either.
|
|
deal regular damage as the multiplier would not trigger either.
|
|
|
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
- [x] buffname
|
|
|
|
- [x] debuffname |
|
|
|
\ No newline at end of file |