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 .
×

How do I multiply and compare separate dice?

I'm working on a custom TTRPG and I'm trying to code in skill rolls for my game, doing so is a roll of a D6 equal to the amount of the stat with successes being 4 and higher. I was able to show the amount of successes using this script of code: (  [[{{1d6}>3}+{{1d6}>3}+{{1d6}>3}+{{1d6}>3}]] ), but this is limited to the number that I have to manually input. Is there a way to use a stat variable to roll and compare each one of them to the value? 
1646832943

Edited 1646833063
Ziechael
Forum Champion
Sheet Author
API Scripter
You should be able to just do: [[@{attribute}d6>4]] Note: Roll20 uses > as >= so your example would be a success on a 3+
Oh! I did not think that it would work that way. Thank you for helping me with this.
1646834844
Ziechael
Forum Champion
Sheet Author
API Scripter
No problem, happy to help :)