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

Help making a roll w/ a conditional attribute modifier

January 19 (3 weeks ago)

Having trouble setting up a damage roll with an option to multiply the base roll by a modifier, something like the below.

Target meets condition ?

If No, than [2d6]

if Yes, than [[2d6]*@{modifier}]] 


Any tips? Thanks!

January 19 (3 weeks ago)

The simplest way to do this is via a query - just formatting your example:

?{Target meets condition?|No,[[2d6]]|Yes,[[2d6*@{modifier}]]}

If you want it to be automatic, you could check for an attribute on target, making the roll as

[[2d6*({1,@{modifier}*@{target|condition}&{noerror}}kh)]]
January 19 (3 weeks ago)
Simple and perfect, thanks!!