forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 71
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
modifiersconfiguration section ingeneral.ymlor in any spell file.
modifiers:
collectionName:
checks:
- <condition> <conditionVar> <action> <actionVar>
pass-condition: ALL- The
checkslist is a list of Modifiers. You should usestoporcontinuemodifier actions in Modifier Collections. -
pass-conditiondefines the number of listed conditions that must pass for the collection to pass:ALLNONE-
ANY- at least one listed -
XOR- only one listed
- Modifier collections can be referenced under a spell's modifiers using the
collectionmodifier condition.
spell:
# . . .
modifiers:
- collection <collectionName> <actionVar>