forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 71
MultiSpell
ChronoKeeper edited this page Aug 12, 2018
·
13 revisions
Multi spells can be used to combine spells to form new spells.
Configuration Options:
| Option | Description | Default Value |
|---|---|---|
| check-individual-cooldowns | Whether to check the cooldowns of the individual spells making up the multi-spell. If this is true and one of those spells is on cooldown for the player, then this spell will also be on cooldown. If this is false, it will ignore the cooldowns of the spells. | false |
| cast-random-spell-instead | Casts a random spell from the list instead of casting all the spells. | false |
| enable-custom-spell-cast-chance | Whether to enable custom spell cast chance | false |
| enable-individual-chances | Whether to enable individual spell cast chances | false |
| spells | A list of spells to cast, in order. You can also use the special “DELAY #” fake spell to add a delay between spell casts (see below). | empty |
Delays:
You can add a delay between spells by using the special “DELAY #” fake spell, where # is a number of server ticks to delay (1 second = 20 ticks). Please keep in mind that this simply delays the cast of the spells and does not maintain any state when the multispell was cast. If the player moves or turns, the delayed spell will target whatever they are looking at when it fires, not what they were looking at when they first cast the spell.
Example:
multispell:
spell-class: ".MultiSpell"
name: multispell
cooldown: 10
cost:
- mana 5
str-cost: 5 mana
check-individual-cooldowns: false
spells:
- leap
- DELAY 20
- explode