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

Dice Rolling Macro, Question how to display all the rolls?

So I am working on a dice rolling macro for Warhammer which I play with distant friends.  I've got my dice rolling macro to work but it will only give me how many success.  I would like it to show all the rolls and also the amount of successes, any help would be appreciated.  Here is what I have so far.... &{template:default} {{name=Dice Roller}} {{Results=[[{ ?{How many?|}d?{Sides|6}+?{Mod|0}}>?{Target|4}]]}}
1696167753
timmaugh
Forum Champion
API Scripter
If you hover over that inline roll, you can see the individual dice that were rolled. If you instead want to see them displayed in your template so that you don't have to hover, you can use a script. Install the MetaScriptToolbox, and then you can run this command: !&{template:default} {{name=Dice Roller}} {{Results=[[{?{How many?|}d?{Sides|6}s+?{Mod|0}}>?{Target|4}]]}}{{Target=?{Target}}}{{Mod=?{Mod}}}{{Dice=[\][\]{&eval}getDiceByVal($[[0]] >0 all list|+?{Mod}\]\][\][\]){&/eval}+?{Mod}\]\]}} {&simple} That utilizes Plugger and ZeroFrame (parts of the MetaScriptToolbox) to derive a template output much like you already had. The above version shows the individual dice as if they were all their own roll so that you can see the roll + the Mod: You can still see each die as a die roll but not include the mod as an adder to each die by removing the two instances of " +?{Mod}" from the last template part: !&{template:default} {{name=Dice Roller}} {{Results=[[{?{How many?|}d?{Sides|6}s+?{Mod|0}}>?{Target|4}]]}}{{Target=?{Target}}}{{Mod=?{Mod}}}{{Dice=[\][\]{&eval}getDiceByVal($[[0]] >0 all list|\]\][\][\]){&/eval}\]\]}} {&simple} Or, if you want to just see the numbers you rolled, without needing to see them as an inline roll, that would be even simpler: !&{template:default} {{name=Dice Roller}} {{Results=[[{?{How many?|}d?{Sides|6}s+?{Mod|0}}>?{Target|4}]]}}{{Target=?{Target}}}{{Mod=?{Mod}}}{{Dice={&eval}getDiceByVal($[[0]] >0 all list|,){&/eval}}} {&simple}