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

floor () does not work, what's wrong?

Hello there. Currently I'm trying to figure out how to make something like this to happen: /r floor(@{Att1}/10)d(floor(@{Att2}/10)! It keeps rolling floor(@{Att1}/10) without second dice part. What am I doing wrong?
1562526806
GiGs
Pro
Sheet Author
API Scripter
You likely need to wrap the second part in [[ ]] brackets to force roll20 to resolve the calculation. Something like /r floor(@{Att1}/10)d[[floor(@{Att2}/10)]]! If that doesnt work, try wrapping the first part as well, but i dont think this should be necessary: /r [[floor(@{Att1}/10)]]d[[floor(@{Att2}/10)]]! Actually just as I'm about to send, I notice your calculation has a missing bracket. You can try this version as well: /r floor(@{Att1}/10)d(floor(@{Att2}/10))! But I think the first roll in this post is probably the correct fix.
1562527265
The Aaron
Roll20 Production Team
API Scripter
Based on some testing, It's the second one that is the answer: /r [[floor(@{Att1}/10)]]d[[floor(@{Att2}/10)]]!
Yay thanks! Worked!