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 .
×

Help with my macro dmg

Hi guys i'm trying to build a spell macro for the Tormenta 20 rpg i'm using this code : &{template:custom}{{name= flame explosion}}{{secondname= 1pm}} {{?{Pm extra|0}[PM]}} {{theroll=[[2d6 +[PM]d6 ]]]}}  {{rollname= Fire damage}} So the spell base cost is 1 pm for 2d6 and i can add 1 extra d6 per adittional mana that i add to the spell, so the dmg macro is 2d6 (base dmg) + [PM] (the extra mana that i used) d6, but the macro doesnt add the extra d6 on the dmg Thanks in advance for the help :)
1616872639
David M.
Pro
API Scripter
Try something like this for your "theroll" field. You can re-use the query value, but have to include the full query prompt in order to do so (e.g. "?{Pm extra}" ) {{theroll=[[2d6[BASE] +?{Pm extra}d6[PM]]]}}
It worked perfectly, Thank you :)