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

Simple Macro hopefully simple fix??

Good Day to all, A really simple question (hopefully). I have the following: &{template:default} {{name= Tyre Damage}} FR {{ [[ 1d6-3 ]] FL [[ 1d6-3]] BR [[ 1dd6-3 ]] BL [[ 1d6-3 ]] }} But I want it to display a 0 if any negative numbers are rolled. Is this possible? Thanks for any help.
1638835160
Kraynic
Pro
Sheet Author
There are a couple ways to do this.&nbsp; 1. Use the grouped rolls:&nbsp; <a href="https://wiki.roll20.net/Dice_Reference#Grouped_Rolls" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Grouped_Rolls</a> Every roll would be replaced by something like this: [[{1d6-3,0d0}kh1]] 2. Use a rollable table with an entry for 0 with 3 as the weight, and then 1, 2, and 3 each just having a weight of 1.&nbsp; Then you would roll that table instead of a die: [[1t[nameofcustomdicetablehere]]]
1638838752

Edited 1638892783
GiGs
Pro
Sheet Author
API Scripter
An unrelated point, the FR in your macro is not inside any brackets (these ones {{ }}) so it wont be printed. Should it be this: &amp;{template:default} {{name= Tyre Damage}} {{ FR [[ 1d6-3 ]] FL [[ 1d6-3]] BR [[ 1dd6-3 ]] BL [[ 1d6-3 ]] }} (With Kraynic's suggestions added).
Thank you both worked perfectly first go. Legends.