r/Roll20•
broran

can you make critical success/failure highlights check the total result of a roll rather than just the die?

I'm going to be starting tomb of annihilation soon and I'm working on a macro for wayfinding, I've got the actual macro done but I was wondering if anybody knows if there's a way to have critical success/failure based on the total result of a roll rather than just the result of the die (in this case I want the result to show green if the roll plus 2 entered values (the leaders survival + any bless/guidance bonus) is 15 or greater and red if it's less then 10)

and by that same token is there a way to not have it show as part of a roll

Posted Apr 5, 2018, 3:28 PM UTC

86
Veoviss•

I'm not sure how to do this with macros, but when using the dice roller on the side bar you can specify a success or failure score. I'd imagine on the wiki there's a way to tie that into a macro. Sorry I can't be of more help than that.

1
FTWinston•

Have a look at the apocalypse world 2e character sheet's roll templates. This highlights the result based on the total score, rather than individual dice, although it's doing its own render rather than just a regular roll result.

1
broranOP•

based on that I was able to figure out how to generate a pass or fail check versus a single dc (and i could probably modify it to be able to change the dc depending on the terrain)(basically if it meets the targes it says 1 if it fails 0) not exactly what I wanted but closer

1
Antrix225•

Ok here is my Idea

/r 1d20cs>[[15-(?{Bonus|0})]]cf<[[9-(?{Bonus|0})]]

Assuming bonus 0 it shows green on 15 or greater and red on less than 10. This works with other boni but then it obfuscates the real result but it shows green or red as you want it. You could let it put out the bonus which would allow you to calculate it yourself. You must not have dice in the bonus since it will roll a seperate die in every use of the bonus. There is as far as I know no way of having it show crit and fail and not show it at the same time without the use of scripts and the API.

1
broranOP•

that did the trick and I was even able to modify it slightly to show the success/failure based on the specific dc's for wayfinding based on terrain

1
broranOP•

And as for not showing the critical that was for a different roll so i figure i should just be able to set the cs anc cf values outside the bounds of the die ( ie for a d6 use cs>7cf<0)

1