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

Any way to display a plus sign in output?

1624288368

Edited 1624288693
I've been doing some formatting of my inlineoutputs, and I was wondering if it was possible to display a plus sign in the inline output. For example [[+1]], as opposed to simply showing a [[1]]. I know I can simply place a +[[1]] to simulate it, but I was wanting to make it consistent with how a penalty would show a [[-1]].
1624293650
The Aaron
Roll20 Production Team
API Scripter
I can't think of a way to do that without the API or a custom Roll Template.
1624320430
GiGs
Pro
Sheet Author
API Scripter
I was going to suggest using a symbol from a different font, or HTML entity, but another problem is there's no way to suppress it if the result is negative.
1624335837

Edited 1624342019
Oosh
Sheet Author
API Scripter
Well this is a little convoluted and only works if you have a template with the right behaviour (this one is from Roll20 5e), but.... &{template:mancerroll} {{title=Result}} {{c1=[[ floor([[1d20*[[(1d2-1.5)*2]]]]/99) + 2 ]]}} {{option1=$[[1]]}} {{option2=+$[[1]]}} The whole 1d2 part of the math is only there to provide a 50% chance of a negative result, and the rest of it is to make sure the outer roll is always 1 or 2 to match the output keys, as the template doesn't have one for -1 or 0. Probably not much good for use with other templates though. Still.. was there a prize? :)