I have an array containing magic words.
<<set setup.magicWords to [
'Shazam',
'Kalam',
'Damballa',
'Mictian',
'Quib quib'
]>>
When a wizard casts a spell, I would like him to pick three random words from this array. My first thought was to go for...
The wizard casts a spell. "<<print Array.random(setup.magicWords)>>, <<print Array.random(setup.magicWords)>>, <<print Array.random(setup.magicWords)>>!"
However, that runs the risk of the wizard casting "Quib quib, Quib quib, Quib quib!" and this is not the effect I seek. Is there a way to call magic words from the array only once, so they are not repeated?