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

[M&M] Specific Roll Macro

Im trying to make it so that when a macro rolls a 1d20-9 (With a minimum result of 0), it is then added to a list of other values. if possible I would also like it that if it rolled 0 or less I could display "Failure". I have used Maptool before, and have some baby experience with java, but I don't get how it all comes together here on Roll20. Any help?
1477417694

Edited 1477417724
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
First, a question. By add to a list of values, do you mean that you want to make a table of rolled results (will require a custom API script) or do you mean that you want to add 1d20-9 to a series of attributes (e.g. 1d20 - 9 + Armor & Dodge). This can be accomplished by the following: /r 1d20-9 +/- @{attributeName} See the  macro wiki for information on keywords that are useable for directing the attribute call to a specific character. For the displaying failure, you can use the  comparison syntax , although it won't display failure, it will display "0 Successes". If you wanted something besides the roll result to pop up, that would require a custom API script as well.
The former. I'm using M&M and simply put the better a character rolls for his power activation, the higher the DCs are for the opponent to save too.