forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 71
RandomSpell
Padfoot edited this page Jan 16, 2019
·
11 revisions
Casts a random spell from the specified options.
| Option | Description | Default value |
|---|---|---|
| pseudo-random | When enabled, the same option won't be picked in sequence. | true |
| spells | List of spells to be picked. Must include probability weight (int) greater than 0 seperated by a space. |
Realistic dice with options that can be picked in sequence.
dice:
spell-class: ".RandomSpell"
pseudo-random: false
spells:
- say1 1
- say2 1
- say3 1
- say4 1
- say5 1
- say6 1Example with psuedo randomness.
notSoRandom:
spell-class: ".RandomSpell"
pseudo-random: true
spells:
- say1 1
- say2 1
- say3 1Despite weight being 10 on one option, this spell will switch between the two options due to psuedo-random being enabled.
switch:
spell-class: ".RandomSpell"
pseudo-random: true
spells:
- say1 1
- say2 10