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 .
×
The Roll20 Black Friday sale is live now! Up to 30% Off Your Favorite Content!

Is there a way to hide the floor() function in chat?

I have the following macro: /em text here: [[1d20+@{STR_MOD}+@{weapon-1-prof}]] Vs. AC STR_MOD is an attribute configured to: floor((@{strength}-10)/2) Alright. When i use the macro it returns the emote + the number, which is exactly what I wanted, but If hover the cursor over the number it shows something like: Rolling 1d20+floor((22-10)/2)+2 = (5)+floor((22-10)/2))+2 Is there a way to hide this second formula and show only the result to show "(5) +6 +2" when hovering over or I'm asking too much? I want the result of (22-10)/2 to be explicit while hovering.
1424019608
The Aaron
Pro
API Scripter
There is not a way to do this with /em or chat. There are ways to handle this with the API ( a mentor level feature ) with some custom scripting. HoneyBadger's Power Card script just got this added as a feature this morning, ironically enough.
1424019636
Lithl
Pro
Sheet Author
API Scripter
You can create another attribute for your strength modifier and update it manually whenever your strength hits an even number, but that's your only option.
Thats alright then. I'll live with it. I was just wondering if I was missing something. It's cool to learn that Roll20 has an API and allows custom scripts. I'll take a look when I have more time. Thanks for the fast replies guys.
The Aaron said: There is not a way to do this with /em or chat. There are ways to handle this with the API ( a mentor level feature ) with some custom scripting. HoneyBadger's Power Card script just got this added as a feature this morning, ironically enough. That feature only works with the expanded rolls option. I still left the formula stuff in normal rolls, though it would be simple enough to push through for all rolls.