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

Macro recognize pairs

Hello, I need some help. Il have this macro : &{template:default} {{name=Result}} {{Decade=[[((1d10)-1)*10]]|[[((1d10)-1)*10]]}} {{Unit=[[1D10-1]]}}. I roll 2 dice for the decade and one for unit. I would like to know if it's possible that I set a name (a,b,c, etc) to each roll of decade and one to the unit for detecting pairs. If one decade=unit, the macro put the note "Critical !" under results. It's possible ? Thanks
1540863791
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
The short answer is no. The longer answer has some reasons to that no. I would like to know if it's possible that I set a name (a,b,c, etc) to each roll of decade and one to the unit for detecting pairs. You can't reuse rolls and compare them using the normal roller. There is an API script (pro perk), power cards, that does allow this. You may also find the new dice matching mechanic useful, although you'll need to redo your macro to utilize it and I'm not sure how useful it will be. If one decade=unit, the macro put the note "Critical !" under results. This functionality can (I believe) be done with the power cards api noted above, as well as with a custom roll template. Custom roll templates are part of character sheets. If your system has a character sheet already made on Roll20, it may handle this for you already. If there is not currently a sheet and your system is a publically available system, you can either make one yourself (pro perk) or ask one of the sheet authors to make one in the sheet request thread so that it can be added to the sheet repository.
Thanks for your answer. I play Call of Cthulhu and I take some rules from Chill. No Roll template yet on roll20 :/