Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

!Scriptcard variable question

I wish for the number of dice rolled to be equal to the spell slot level chosen minus one but am having trouble getting the scripting right. Is anyone able to see how to input the -1 into this line? --=WeaponDmg|?{Spell Slot Level?|3|4|5|6|7|8|9}d[&WeaponDamageDieSize]
One way to do this is to separate like the below: --&SpellLevel|?{Spell Slot Level?|3|4|5|6|7|8|9} --=WeaponDmg|[= [&SpellLevel] - 1]d[&WeaponDamageDieSize]
Thank you Joshua N., Works perfectly =)