|
Mechanic: Chain
|
|
## Description
|
|
===============
|
|
|
|
|
|
|
|
Chain allows you to make skills that bounce between targets, like a
|
|
Chain allows you to make skills that bounce between targets, like a
|
|
"chain lightning" type skill.
|
|
"chain lightning" type skill.
|
|
|
|
|
... | @@ -15,9 +13,8 @@ in the skill and the inherited target of onBounce will be the next |
... | @@ -15,9 +13,8 @@ in the skill and the inherited target of onBounce will be the next |
|
entity it is bouncing to, so fromOrigin is your friend for making
|
|
entity it is bouncing to, so fromOrigin is your friend for making
|
|
effects!
|
|
effects!
|
|
|
|
|
|
Attributes
|
|
|
|
----------
|
|
|
|
|
|
|
|
|
|
## Attributes
|
|
| Attribute | Aliases | Description | Default |
|
|
| Attribute | Aliases | Description | Default |
|
|
|------------------|------------|-----------------------------------------------------------------------------|---------|
|
|
|------------------|------------|-----------------------------------------------------------------------------|---------|
|
|
| onBounce | ob | The skill that bounces between targets | |
|
|
| onBounce | ob | The skill that bounces between targets | |
|
... | @@ -28,27 +25,26 @@ Attributes |
... | @@ -28,27 +25,26 @@ Attributes |
|
| hitTarget | ht | Whether the chain should do the initial from the caster to the first target | true |
|
|
| hitTarget | ht | Whether the chain should do the initial from the caster to the first target | true |
|
|
| hitPlayers | hp | Whether the chain should bounce to players | true |
|
|
| hitPlayers | hp | Whether the chain should bounce to players | true |
|
|
| hitNonPlayers | hnp | Whether the chain should bounce to non-players | false |
|
|
| hitNonPlayers | hnp | Whether the chain should bounce to non-players | false |
|
|
| bounceConditions | conditions | Conditions applied to the bounce target | NONE |
|
|
| bounceConditions | conditions, cond, c | Conditions applied to the bounce target | NONE |
|
|
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
Examples
|
|
```yaml
|
|
--------
|
|
Skills:
|
|
|
|
- chain{
|
|
Skills:
|
|
bounces=5;
|
|
- chain{
|
|
bounceRadius=10;
|
|
bounces=5;
|
|
bounceDelay=1;
|
|
bounceRadius=10;
|
|
hitSelf=false;
|
|
bounceDelay=1;
|
|
hitPlayers=true;
|
|
hitSelf=false;
|
|
hitNonPlayers=true;
|
|
hitPlayers=true;
|
|
hitTarget=true;
|
|
hitNonPlayers=true;
|
|
onBounce=[
|
|
hitTarget=true;
|
|
- effect:particleline{p=flame;fromOrigin=true}
|
|
onBounce=[
|
|
];
|
|
- effect:particleline{p=flame;fromOrigin=true}
|
|
bounceConditions=[
|
|
];
|
|
- inlineofsight
|
|
bounceConditions=[
|
|
- hasaura{aura=damageResist} false
|
|
- inlineofsight
|
|
];
|
|
- hasaura{aura=damageResist} false
|
|
} @target ~onTimer:20
|
|
];
|
|
``` |
|
} @target ~onTimer:20 |
|
\ No newline at end of file |