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 - Display Damage, then display Damage x1.5 (Same roll)

Hey all. Here's what I'm trying to do in a single macro. Emote, Roll for Hit, Roll for Damage, Then, if I use a certain ability, modify that SAME damage roll to 1.5 times damage. /em holds one hand to his head, another toward the enemy. He trembles noticeably. To Hit: [[1d20+3+3]] If Hit: [[3d10+3]] Damage If "Empower Power" active: (Pseudo code here:) [[The result of the above damage roll] x 1.5] Damage Will Negates: DC= [[10+3+3]] Result should look something like this: (Results of rolls are examples, of course) Roelon holds one hand to his head, another toward the enemy. He trembles noticeably. To Hit: [18] If Hit: [20] Damage If "Empower Power" active: [30] Damage Will Negates: DC = [16] Tips?
1390166407

Edited 1390166607
Gauss
Forum Champion
You cannot do an If, Then statement without using the API. However, you can use a switch instead. /em holds one hand to his head, another toward the enemy. He trembles noticeably. To Hit: [[1d20+3+3]] If Hit: [[(3d10+3)*(1+0.5*?{Empower Power|0}) ]] Damage Will Negates: DC= [[10+3+3]] When the query comes up a 0 = no Empower while a 1 = Empower. Note: If you want it rounded up or down you can add a floor or ceiling statement. If Hit: [[floor( (3d10+3)*(1+0.5*?{Empower Power|0}) ) ]] Damage If Hit: [[ceil( (3d10+3)*(1+0.5*?{Empower Power|0}) ) ]] Damage
1390167249

Edited 1390167924
Is it possible to declare before the roll if an ability is being used? If so, then use separate macros: empower-sample: /em holds ... #attack-sample %damage = #damage*1.5 damage attack-sample: /roll 1d20+6 vs @{target|AC} [Attack] damage: /roll 3d10+3 Another way with the empower-sample is to slap in a query, to let people declare the multiplier; empower-sample-2: ... ... %damage = #damage*?{Modifier|1} The query will ask the user if they wish to apply the empower to their damage by asking for a modifier. Lemme know if these work, 'kay? EDIT: I was ninja'd by a mod. Whoops. xD
Gauss - That works beautifully! Josh - Thanks!