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 .
×
May your rolls be chill this holiday season!
Create a free account

Macro assist for Shadowrun 5th

Hi I have copied the macro instructions from the character sheet to make a macro for the Ares Alpha, now i want the macro to ask for a modifier before rolling. I have seen the guide on how to modify a D20 but its beyond me how I would add or reduce the amount of D6's for the macro. I am using the 5th Edition character sheet by Cassie Levett, that has the option to add modifiers, however I want to make it a token action. Any help would be appreciated. Here is the macro i have used, it is literally a straight copy. @{Mer -Mer|gm_toggle} &{template:rolls}{{mod=[[@{Mer -Mer|modifiers_toggle}]]}}{{wound=[[@{Mer -Mer|wounds_toggle}]]}}{{edge=[[@{Mer -Mer|edge_toggle}]]}}{{header=Ares Alpha}}{{base=^{agility}}}{{dice=[[((@{Mer -Mer|automatics}+2+@{Mer -Mer|agility})+@{Mer -Mer|wounds_toggle}+@{Mer -Mer|modifiers_toggle}+@{Mer -Mer|edge_toggle})d6>5@{Mer -Mer|explode_toggle}]]}}{{desc=BF, ACC 7, DV 11P, AP -2}}
1592749547
David M.
Pro
API Scripter
Looks like they are adding a bunch of stuff from the character sheet to determine the # of d6's (sorry, I don't play Shadowrun). I think if you add the bolded text as shown, it should prompt you to add a number and have it add to the dice pool. Note, however that things will break if somebody types in a non-numeric character (like "1 space") @{Mer -Mer|gm_toggle} &{template:rolls}{{mod=[[@{Mer -Mer|modifiers_toggle}]]}}{{wound=[[@{Mer -Mer|wounds_toggle}]]}}{{edge=[[@{Mer -Mer|edge_toggle}]]}}{{header=Ares Alpha}}{{base=^{agility}}}{{dice=[[((@{Mer -Mer|automatics}+2+@{Mer -Mer|agility})+@{Mer -Mer|wounds_toggle}+@{Mer -Mer|modifiers_toggle}+@{Mer -Mer|edge_toggle} +?{Manual dice modifier} )d6>5@{Mer -Mer|explode_toggle}]]}}{{desc=BF, ACC 7, DV 11P, AP -2}} So, you may want to hardcode a dropdown list like this. You can extend the pattern for as many dice as you would need. @{Mer -Mer|gm_toggle} &{template:rolls}{{mod=[[@{Mer -Mer|modifiers_toggle}]]}}{{wound=[[@{Mer -Mer|wounds_toggle}]]}}{{edge=[[@{Mer -Mer|edge_toggle}]]}}{{header=Ares Alpha}}{{base=^{agility}}}{{dice=[[((@{Mer -Mer|automatics}+2+@{Mer -Mer|agility})+@{Mer -Mer|wounds_toggle}+@{Mer -Mer|modifiers_toggle}+@{Mer -Mer|edge_toggle} + ?{ Manual dice  modifier|1,1 |2,2 |3,3 |4,4 |5,5} )d6>5@{Mer -Mer|explode_toggle}]]}}{{desc=BF, ACC 7, DV 11P, AP -2}}
David M. said: Looks like they are adding a bunch of stuff from the character sheet to determine the # of d6's (sorry, I don't play Shadowrun). I think if you add the bolded text as shown, it should prompt you to add a number and have it add to the dice pool. Note, however that things will break if somebody types in a non-numeric character (like "1 space") @{Mer -Mer|gm_toggle} &{template:rolls}{{mod=[[@{Mer -Mer|modifiers_toggle}]]}}{{wound=[[@{Mer -Mer|wounds_toggle}]]}}{{edge=[[@{Mer -Mer|edge_toggle}]]}}{{header=Ares Alpha}}{{base=^{agility}}}{{dice=[[((@{Mer -Mer|automatics}+2+@{Mer -Mer|agility})+@{Mer -Mer|wounds_toggle}+@{Mer -Mer|modifiers_toggle}+@{Mer -Mer|edge_toggle} +?{Manual dice modifier} )d6>5@{Mer -Mer|explode_toggle}]]}}{{desc=BF, ACC 7, DV 11P, AP -2}} So, you may want to hardcode a dropdown list like this. You can extend the pattern for as many dice as you would need. @{Mer -Mer|gm_toggle} &{template:rolls}{{mod=[[@{Mer -Mer|modifiers_toggle}]]}}{{wound=[[@{Mer -Mer|wounds_toggle}]]}}{{edge=[[@{Mer -Mer|edge_toggle}]]}}{{header=Ares Alpha}}{{base=^{agility}}}{{dice=[[((@{Mer -Mer|automatics}+2+@{Mer -Mer|agility})+@{Mer -Mer|wounds_toggle}+@{Mer -Mer|modifiers_toggle}+@{Mer -Mer|edge_toggle} + ?{ Manual dice  modifier|1,1 |2,2 |3,3 |4,4 |5,5} )d6>5@{Mer -Mer|explode_toggle}]]}}{{desc=BF, ACC 7, DV 11P, AP -2}} Thanks David, that's amazing.  Worked like a charm.