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

My macro showing the roll as plain text?

Hi, I've put this macro available to my players so they can choose one kind of potion and get how much HP they gain from it, but I can't get it to show the roll as usually, it shows plain numbers and not a roll so they can't see the roll result when they put the pointer over it. I've used the roll template for pathfinder 2e, this is my macro: &nbsp;&amp;{template:rolls} {{header=Poción de Curación}} [[{{desc= ?{Elige una poción|Inferior, [image](<a href="https://s3.amazonaws.com/files.d20.io/images/281740667/LOQavp4Gk9rb_0oIsqH6Gg/original.png?16506477795#.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/281740667/LOQavp4Gk9rb_0oIsqH6Gg/original.png?16506477795#.png</a>) **Poción de Curación Inferior** cura **[[1d8]]** pg|Menor, [image](<a href="https://s3.amazonaws.com/files.d20.io/images/281745104/1rkFKo9Lt7JgZhq5hUFGxg/original.png?16506496135#.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/281745104/1rkFKo9Lt7JgZhq5hUFGxg/original.png?16506496135#.png</a>) **Poción de Curación Menor** cura **[[2d8+5]]** pg|Moderada, [image](<a href="https://s3.amazonaws.com/files.d20.io/images/281745105/xXH4fhbsO5ctoe90iHHDfw/original.png?16506496135#.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/281745105/xXH4fhbsO5ctoe90iHHDfw/original.png?16506496135#.png</a>) **Poción de Curación Moderada** cura **[[3d8+10]]** pg|Mayor, [image](<a href="https://s3.amazonaws.com/files.d20.io/images/281745103/XQocHQza5ew6tmVtw4BdvA/original.png?16506496135#.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/281745103/XQocHQza5ew6tmVtw4BdvA/original.png?16506496135#.png</a>) **Poción de Curación Mayor** cura **[[6d8+20]]** pg|Superior, [image](<a href="https://s3.amazonaws.com/files.d20.io/images/281745102/vEh8g0ezF0FLlbebC5dEBw/original.png?16506496135#.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/281745102/vEh8g0ezF0FLlbebC5dEBw/original.png?16506496135#.png</a>) **Poción de Curación Superior** cura **[[8d8+30]]** pg} }} !roll20AM --audio,nomenu,play|pocion !roll20AM --audio,nomenu,delay:5,stop|pocion Also, I would like to add that number to the health of the selected token. I have tokenmod, but I've searched and found that one roll can't be "readed" and used in a formula after it rolled, but would it be possible to get a similar output using the&nbsp;--report command? Any help with that would be greatly appreciated. And one last question, anyone knows if there's a way to modify the input modal window, maybe change the title so doesn't show that "Input Value" message? Thanks!
1650654957

Edited 1650654968
Just a quick look - I see an extra set of square brackets before the desc section: &amp;{template:rolls} {{header=Poción de Curación}} [[ {{desc= It should work if you remove them: &amp;{template:rolls} {{header=Poción de Curación}} {{desc=
Right! Thank you for catching that! Fixed!
1650656452

Edited 1650656619
vÍnce
Pro
Sheet Author
There is an extra couple square brackets ie "[[" at the beginning that need to be removed. [[{{desc= That should help with the inline rolls. Tokenmod can adjust token bar values, but I'm not sure if you can embed an api call inside the macro... Tim might have a meta script method that can capture the rolls so they can be used in both.&nbsp; Not sure Here's an example of just using tokenmod; !token-mod {{ --set bar1_value|+[[ { @{target|Whom|bar1|max}, [[ ?{Elige una poción|Inferior,1d8|Menor,2d8+5|Moderada,3d8+10|Mayor,6d8+20|Superior,8d8+30} ]] }kl1 ]] --report all|"Healed {name} for {bar1_value:abschange}hp, now at {bar1_value}" --ids @{target|Whom|token_id} }} Query window; AFAIK, I think you would have to use Stylus or similar css browser extension to adjust those types of elements in the vtt and it only appears different to the person using the extension.
I have tested with tokenmod and it seems that --report doesn't support that kind of output, but I can live without a "pretty" template! I'll use that.&nbsp; Thank you!