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

Syntax Error

1431281958

Edited 1431282127
I'm trying to make a formula for my game, wherein a dice is rolled, in this case a D90. The D90 would re-roll/toss any roll that scores below a 30. However, any roll that scores above a 60 would Explode and roll another die; and if that newly-rolled die rolled a 60 as well the pattern would continue until 60+ rolls stopped, which would result in the final total roll being the accumulated amount in total. So, essentially the outcome would look something like: (In the instance of simply rerolling): [ 30 , 75 ] (When that rolled 75, because it's above 60, explodes and continues until exploding die can no longer apply): [ 30 , 75, 64, 12 ] (Total roll result/number being: 151) The formula I've been trying to work with is: [[ {1d90r<30}!>60 ]] (The first { } bracket indicating the initial minimum roll of 30, and rerolling until a dice scores above that target number, with, once the target minimum is reached, exploding the dice if it happens to score above 60 and continuing to explode with rolls above 60 until a dice scores below 60, in which case the explodes stop and the roll is done). However, with it I keep getting syntax errors no matter how I mess with it. ;-; I keep getting this: SyntaxError: Expected "d", "k", "x", [0-9] or [>|<|=] but "!" found.
1431283047
Lithl
Pro
Sheet Author
API Scripter
Just get rid of the curly brackets trying to create a grouped roll (exploding is not a valid group modifier). 1d90r<30!>60 works just fine.