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

Wild Soul Barbarian Macro

Hello, my DM is using a homebrew rule where I roll a d6 on my rage. If I roll a 1-5 I roll d10 Wild Soul magic from his table; on a 6 I roll a d8 for Wild Soul magic on my table. I am trying to make a macro that will only show the d6 result and the resulting d8 or d10.
1591489614

Edited 1591492856
Oosh
Sheet Author
API Scripter
I can't think of a way to get that conditional to work in one line... someone cleverer might be able to. This would do the d8 roll only on a 6: But I can't figure out how to get the d10 rolled only on 1-5, without showing both results. It's easy enough to show both the d8 and d10 result, obviously. OK, this isn't pretty, but it should work. It will roll a 0 for the die type not required: Wild Soul result: [[  [[abs(ceil( [[ [[floor( [[1d6]] /6)]]d8]]/8)-1)]]d10  ]]d10 / $[[2]]d8  (d6 roll: $[[0]]) That almost snapped my brain, as I had referenced $[[2]] incorrectly and thought it wasn't rolling dice. Are these Rollable Tables you're referring to? If you set them up as Rollable Tables you could do this: &{template:default} {{name=Wild Soul Roll}} {{Roll = [[1d6]]}} {{ [Roll d8 Table](~Bob|d8Table)=[Roll d10 Table](~Bob|d10Table) }} You'd then need 2 Ability macros on your character sheet (in the above code called Bob), d8Table and d10Table, which simply roll on the Rollable Table you've set up. For example if your d8 Rollable Table is named WildSoul8, you would have an Ability macro called d8Table that goes: [[1t[WildSoul8] ]]
1591500865

Edited 1591501107
Thank you, the first macro you threw up will be perfect until I can figure out how to do get this one down.
1591500979
Oosh
Sheet Author
API Scripter
I don't know of any way to suppress the unneeded roll with a chat macro... rolling 0 is the best I can do!
That is ok. I was having issues tonight with rolling the multiple dice and flipping between tabs. Figured I would ask someone in the community.