
I am having trouble trying to figure out what I'm doing wrong. I have looked over the Advanced Macro Usage guide for how to code this, but still it isn't doing what I'm wanting it to do. I'm wanting the macro to be able to have a player choose between Option A (Standard Attack), Option B (Attack with Benefit), or Option C (Attack with Hinderance) and then, once they select that option be able to enter a +/- value that modifies that roll. For example: A player chooses that they are making an attack with Benefit, they choose that option and then they also have a +2 bonus on the roll; after selecting the Benefit from the drop-down the next pop-up asks for what the modifier should be and they add +2, causing it roll 3d10kh2+@{selected|charattackvalue}+2. Can someone please help me fix this macro? Here's what I have so far (and isn't working as intended)
&{template:default} {{name=Basic Attack}} {{attack=[[
?{Attack Type|
Standard, 2d10+@{selected|charattackvalue} |
Modifier 1A, ?{Modifier|?} |
} |
Benefit, 3d10kh2+@{selected|charattackvalue} |
Modifier 2A, ?{Modifier|?} |
| |
Hinderance, 3d10kl2+@{selected|charattackvalue} |
Modifier 3A, ?{Modifier|?} |
} ]]}}
{{damage=[[@{selected|weapon1damage}]]}}
I was able to code it to get what I want it to do (minus the modifier) using this:
&{template:default} {{name=Basic Attack}} {{attack=[[?{Attack Type|Standard, 2d10+@{selected|charattackvalue}|Benefit, 3d10kh2+@{selected|charattackvalue}|Hinderance, 3d10kl2+@{selected|charattackvalue}} ]]}} {{damage=[[@{selected|weapon1damage}]]}}