... | @@ -7,12 +7,12 @@ targeter is specified. |
... | @@ -7,12 +7,12 @@ targeter is specified. |
|
|
|
|
|
Syntax
|
|
Syntax
|
|
------
|
|
------
|
|
|
|
```yaml
|
|
Skills:
|
|
Skills:
|
|
- skill{skill=AnotherSkill} @Target ~onAttack
|
|
- skill{skill=AnotherSkill} @Target ~onAttack
|
|
- skill{s=AnotherSkill} @Trigger ~onSpawn
|
|
- skill{s=AnotherSkill} @Trigger ~onSpawn
|
|
- skill:OtherSkill @Trigger ~onDeath
|
|
- skill:OtherSkill @Trigger ~onDeath
|
|
|
|
```
|
|
|
|
|
|
The attribute "sync=true" will be inherited by any sub-skills and cannot
|
|
The attribute "sync=true" will be inherited by any sub-skills and cannot
|
|
be set to *false* later in a skill-tree.
|
|
be set to *false* later in a skill-tree.
|
... | @@ -27,29 +27,54 @@ Cooldown |
... | @@ -27,29 +27,54 @@ Cooldown |
|
Skill configurations are capable of utilizing cooldown
|
|
Skill configurations are capable of utilizing cooldown
|
|
Add cooldown to your skills like this:
|
|
Add cooldown to your skills like this:
|
|
|
|
|
|
internal_skillname:
|
|
```yaml
|
|
Cooldown: <seconds>
|
|
internal_skillname:
|
|
Conditions:
|
|
Cooldown: <seconds>
|
|
- condition
|
|
Conditions:
|
|
- ...
|
|
- condition
|
|
Skills:
|
|
- ...
|
|
- mechanic{}
|
|
Skills:
|
|
- ...
|
|
- mechanic{}
|
|
|
|
- ...
|
|
|
|
|
|
|
|
```
|
|
Note that this only applies for skill configurations that are saved as
|
|
Note that this only applies for skill configurations that are saved as
|
|
skill-files in */MythicMobs/Skills*. Cooldown can't be added to
|
|
skill-files in */MythicMobs/Skills*. Cooldown can't be added to
|
|
mechanics called directly in mob configuration files.
|
|
mechanics called directly in mob configuration files.
|
|
|
|
|
|
|
|
OnCooldownSkill
|
|
|
|
---------------
|
|
|
|
|
|
|
|
If the metaskill is triggered while on cooldown, this option allows for it to launch another metaskill instead
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
internal_skillname:
|
|
|
|
Cooldown: <seconds>
|
|
|
|
OnCooldownSkill: internal_fallbackskill_name
|
|
|
|
Skills:
|
|
|
|
- mechanic{}
|
|
|
|
- ...
|
|
|
|
|
|
|
|
internal_fallbackskill_name:
|
|
|
|
Skills:
|
|
|
|
- mechanic{}
|
|
|
|
- ...
|
|
|
|
```
|
|
|
|
|
|
|
|
Note that the skill you set as the value of OnCooldownSkill can itself have a OnCooldownSkill option.
|
|
|
|
|
|
Examples
|
|
Examples
|
|
--------
|
|
--------
|
|
|
|
|
|
Skills:
|
|
```yaml
|
|
- skill{s=AnotherSkill;sync=true} @Target ~onAttack
|
|
Skills:
|
|
- skill{s=ice_bolt;sync=true} @Target ~onTimer:100
|
|
- skill{s=AnotherSkill;sync=true} @Target ~onAttack
|
|
- skill{sync=true;s=flamethrower} @TargetLocation ~onTimer:200
|
|
- skill{s=ice_bolt;sync=true} @Target ~onTimer:100
|
|
- skill:Onemechainc @Target ~onDamaged
|
|
- skill{sync=true;s=flamethrower} @TargetLocation ~onTimer:200
|
|
- skill
|
|
- skill:Onemechainc @Target ~onDamaged
|
|
{
|
|
- skill
|
|
skill=leafs;
|
|
{
|
|
sync=true
|
|
skill=leafs;
|
|
} |
|
sync=true
|
|
\ No newline at end of file |
|
}
|
|
|
|
``` |
|
|
|
\ No newline at end of file |