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

Need Macro for multiple options before rolling damage

I have seen macros which look like this: ?{Sneak Attack|No, 1d6|Yes, 1d6+ [[ ceil((@{base_level}) / 2) ]]d6 [Sneak Attack]} or this: ?{Hexblade Curse|No, 1d6|Yes, 1d6+ @{pb} [Hexblade Curse]} So I understand the basic layout of the code, but I currently have a character (in a Basic Fantasy game) who has TWO choices to make on every damage roll (namely whether the opponent is unarmored, and whether the character hit by 5 or more). They affect the number of damage dice rolled (the basic attack does 1d4, with an extra d4 being added if the opponent is unarmored, and another d4 added if his attack roll hits by 5+). How do I write that?
1582993386
GiGs
Pro
Sheet Author
API Scripter
Here's one way to do that  [[1+?{armoured|yes,0|No,1}+?{hit by 5+|yes,1|no,0}]]d4 Everything inside the [[ ]] is calculated, so this will give you 1-3d4. You'll need to insert into your roll macro, which might be as simple as /roll [[1+?{armoured|yes,0|No,1}+?{hit by 5+|yes,1|no,0}]]d4
That works perfectly, thank you!!!