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

{Question} how to clean up the mouseover on inline rolls.

i am trying to do some math using: [[ ( 1d20cs<@{Selected|CritChance} ) + (@{Selected|pb}) + @{selected|strength_mod} + @{Selected|Misc_Mod} ]] where each attribute holds the following: @{selected|CritChance} = 19 @{Selected|pb} = (ceil((3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0)/1e10) + ceil((3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0)/4)) @{selected|strength_mod} = (floor((20-10)/2)) @{Selected|Misc_Mod} = 5 currently the mouse-over shows: Rolling ( 1d20cs<19 ) + ((ceil((3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0)/1e10) + ceil((3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0)/4))) + (floor((20-10)/2)) + (5) = (( 17 )) + ((ceil((3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0)/1e10) + ceil((3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0)/4))) + (floor((20-10)/2)) + (5) im trying to clean up the mouse-over to show: ( 1d20cs<19 ) + (2) + (5) + (5) = ((17)) + (2) + (5) + (5) maybe even with labels: ( 1d20cs<19 ) + (2) [Prof Bonus] + (5) [Ability Mod]+ (5) [Misc Mod] = (( 17 )) + (2) + (5) + (5) is this posible without the use of API's or if not, what API's are able to do this.
You'd have to edit the character sheet formulas to do this.
1428481634
Kryx
Pro
Sheet Author
API Scripter
HoneyBadger said: You'd have to edit the character sheet formulas to do this. Character sheet formulas can't "clean up" rolls.
Yeah they can. It just requires the players to figure out their proficiency bonus instead of relying on the sheet.
1428494936

Edited 1428494968
Kryx
Pro
Sheet Author
API Scripter
HoneyBadger said: Yeah they can. It just requires the players to figure out their proficiency bonus instead of relying on the sheet. Which nullifies many benefits of the sheet in the first place. To have cleaned up rolls the users would have to enter so much: Ability score modifiers Skill totals (Do the math: ability score, bonus, proficiency, etc!) Proficiency bonus (easy one) AC etc etc It basically nullifies any calculations done on the sheet. It's not a solution that any public sheet would use.
1428495944

Edited 1428496304
Sure it can. You simply add a spot where the player puts in their proficiency bonus instead of auto-calculating it. The biggest issue with all the calculations comes from the @{PB} attribute in the 5e. So instead of (ceil((3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0)/1e10) + ceil((3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0)/4)) you have a single value like +2.
1428498267

Edited 1428498336
The Aaron
Pro
API Scripter
I think that (5) is the result of the d20. Edit: Oh, I see what you're saying.. disregard. =D
1428499453

Edited 1428499555
Kryx
Pro
Sheet Author
API Scripter
Ignore that stuff above, it was a vestigial attribute that I had manually modified.
My guess is that it depends on the order of the inputs... I dunno.
We're coming out with a new feature shortly that will help you hide all that math more easily. Should be on Dev tonight or tomorrow.
Riley D. said: We're coming out with a new feature shortly that will help you hide all that math more easily. Should be on Dev tonight or tomorrow. That is just pure awesome!
1428512550
Kryx
Pro
Sheet Author
API Scripter
Riley D. said: We're coming out with a new feature shortly that will help you hide all that math more easily. Should be on Dev tonight or tomorrow. yay!
1428513091

Edited 1428513174
Riley D. said: We're coming out with a new feature shortly that will help you hide all that math more easily. Should be on Dev tonight or tomorrow. I Dont Know How To Express My Joy ... <a href="https://www.google.com/search?q=pure+joy&source=lnms&tbm=isch&sa=X&ei=IWElVbHqE9bXoASBnYCwAw&ved=0CAcQ_AUoAQ&biw=1920&bih=946" rel="nofollow">https://www.google.com/search?q=pure+joy&source=lnms&tbm=isch&sa=X&ei=IWElVbHqE9bXoASBnYCwAw&ved=0CAcQ_AUoAQ&biw=1920&bih=946</a> Edit: one question, in a rough idea how would it work?
Riley D. said: We're coming out with a new feature shortly that will help you hide all that math more easily. Should be on Dev tonight or tomorrow. I hope this new feature will also hide dropped rolls from the Keep/Drop function...