forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 67
Modifier Collections
JasperLorelai edited this page Nov 18, 2023
·
3 revisions
- Modifier collections can be very useful when you want to use the same collection of modifiers multiple times. Aside from that they are also useful for when you want only one or at least one modifier to pass.
- They are defined in the
modifiers
configuration section ingeneral.yml
or in any spell file.
modifiers:
collectionName:
checks:
- <condition> <conditionVar> <action> <actionVar>
pass-condition: ALL
- The
checks
list is a list of Modifiers. You should usestop
orcontinue
modifier actions in Modifier Collections. -
pass-condition
defines the number of listed conditions that must pass for the collection to pass:ALL
NONE
-
ANY
- at least one listed -
XOR
- only one listed
- Modifier collections can be referenced under a spell's modifiers using the
collection
modifier condition.
spell:
# . . .
modifiers:
- collection <collectionName> <actionVar>