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

[Macro Help] How do you set a minimum damage value?

I have a pseudodragon as a cohort. There's a lot of different thing's in this macro all of which work.  It's attack is 1d3-2 plus any damage from the skirmish ability which is in the macro as a toggle on/off. However I need to set the minimum damage to not be lower than 1. Even with the skirmish ability, I could roll a 1 on the d3, a 1 on the d6 and end up with a total of 0 damage. Obviously on a roll like this minimum damage would be 1, but that's not what the macro show's. Here is the Macro. &{template:DnD35Attack} {{pcflag=true}} {{name=Tanis}} {{subtags=uses poision sting!}} {{attack1=A1:[[d20cs+10+?{Attack|0}]]}} {{critconfirm1=Crit?:[[d20+10+?{Attack|0}]]}} {{damage1=D1:[[1d3+?{Damage|0}+?{Skirmish?| No, [[0]] |Yes,[[1d6]] }-2]]}} {{critdmg1=+[[(d3-2+?{Damage|0})]]}} {{fullattackflag=[[?{Draconic Zeal|0}d1]]}} {{attack2=A2:[[d20cs+10+?{Attack|0}]]}} {{critconfirm2=Crit?:[[d20+10+?{Attack|0}]]}} {{damage2=D2:[[1d3+?{Damage|0}-2]]}} {{critdmg2=+[[(d3-2+?{Damage|0})]]}} {{attack3=A3:[[d20cs+10+?{Attack|0}]]}} {{critconfirm3=Crit?:[[d20+10+?{Attack|0}]]}} {{damage3=D3:[[1d3-2+?{Damage|0}]]}} {{critdmg3=+[[(d3-2+?{Damage|0})]]}} The minimum value would need to also be set for attack 2 and 3 as well as all critical damage. Any help would be appreciated.
{2 , [[your normal damage roll]] }kh1
I will give it a shot and try it out. Was messing with KH1 but not in that way.
1469910223

Edited 1469910396
{{damage1=D1:[[{1,[[1d3+?{Damage|0}+?{Skirmish?| No, [[0]] |Yes,[[1d6]] }-2]]}kh1]]}} This line seems to work as intended while testing it. I'm either getting 1, 2, or 4 so far out of 6 rolls. Will keep trying. 7 is the highest damage possible. That seems to work just fine. After about 10 rolls, got a 7 and several threes. Just need to edit the rest of the macro in the same way. Thank you!