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 on 5e_OGL_SavingThrows. Need some help

Hi!. I would like to include  Advantage/disadvantage in this Macro, but still didn´t get it. Any idea/solution? I would like also to show a Text after the dice roll such as "STR" for Strength saving rolls, "DEX" for Dexterity an so on. /w gm &{template:npc} {{normal=1}} {{name=@{selected|token_name}}} {{rname=Saving Throw}} {{r1=[[1d20+?{save|STR, @{selected|strength_save_bonus}|DEX, @{selected|dexterity_save_bonus}|CON, @{selected|constitution_save_bonus}|INT, @{selected|intelligence_save_bonus}|WIS, @{selected|wisdom_save_bonus}|CHA, @{selected|charisma_save_bonus}}]]}} charname=@{selected|character_name} Thanks!
1527456420
The Aaron
Pro
API Scripter
I don't know that template at all but my guess would be you need to move the inline roll inside the Roll Query in order to have a variable label to the right.  something akin to: /w gm &{template:npc} {{normal=1}} {{name=@{selected|token_name}}} {{rname=Saving Throw}} {{r1=?{save|STR, [[1d20+@{selected|strength_save_bonus}]]:[[1d20+@{selected|strength_save_bonus}]]  STR|DEX, [[1d20+@{selected|dexterity_save_bonus}]]:[[1d20+@{selected|dexterity_save_bonus}]]  DEX|CON, [[1d20+@{selected|constitution_save_bonus}]]:[[1d20+@{selected|constitution_save_bonus}]]  CON|INT, [[1d20+@{selected|intelligence_save_bonus}]]:[[1d20+@{selected|intelligence_save_bonus}]]  INT|WIS, [[1d20+@{selected|wisdom_save_bonus}]]:[[1d20+@{selected|wisdom_save_bonus}]]  WIS|CHA, [[1d20+@{selected|charisma_save_bonus}]]:[[1d20+@{selected|charisma_save_bonus}]]  CHA|}} charname=@{selected|character_name} There might be some HTML escaping necessary.
Unfortunately it doesnt work with that Template. The outcome with that solution is:
1527483917

Edited 1527528259
My saving throw looks like this. This will do advantages, and disadvantages for all six of your attributes. /w gm &{template:default} {{name=Saving Throws}}{{Str Save=[[1d20+@{selected|strength_save_bonus}]],[[1d20+@{selected|strength_save_bonus}]]}}{{Dex Save=[[1d20+@{selected|dexterity_save_bonus}]],[[1d20+@{selected|dexterity_save_bonus}]]}}{{Con Save=[[1d20+@{selected|constitution_save_bonus}]],[[1d20+@{selected|constitution_save_bonus}]]}}{{Int Save=[[1d20+@{selected|intelligence_save_bonus}]],[[1d20+@{selected|intelligence_save_bonus}]]}}{{Wis Save= [[1d20+@{selected|wisdom_save_bonus}]],[[1d20+@{selected|wisdom_save_bonus}]]}}{{Cha Save= [[1d20+@{selected|charisma_save_bonus}]],[[1d20+@{selected|charisma_save_bonus}]]}}
Blood L. said: My saving throw looks like this. This will do advantages, and disadvantages for all six of your attributes. /w gm &{template:default} {{name=Saving Throws}}{{Str Save=[[1d20+@{selected|strength_save_bonus}]],[[1d20+@{selected|strength_save_bonus}]]}}{{Dex Save=[[1d20+@{selected|dexterity_save_bonus}]],[[1d20+@{selected|dexterity_save_bonus}]]}}{{Con Save=[[1d20+@{selected|constitution_save_bonus}]],[[1d20+@{selected|constitution_save_bonus}]]}}{{Int Save=[[1d20+@{selected|intelligence_save_bonus}]],[[1d20+@{selected|intelligence_save_bonus}]]}}{{Wis Save= [[1d20+@{selected|wisdom_save_bonus}]],[[1d20+@{selected|wisdom_save_bonus}]]}}{{Cha Save= [[1d20+@{selected|charisma_save_bonus}]],[[1d20+@{selected|charisma_save_bonus}]]}} Thanks Blood L. Yes i have that too. Check this one: /w gm &{template:default} {{name=TS @{Selected|token_name}}} {{Str Save= [[1d20+@{selected|strength_save_bonus}]] | [[1d20+@{selected|strength_save_bonus}]]}} {{Dex Save= [[1d20+@{selected|dexterity_save_bonus}]] | [[1d20+@{selected|dexterity_save_bonus}]]}} {{Con Save= [[1d20+@{selected|constitution_save_bonus}]] | [[1d20+@{selected|constitution_save_bonus}]]}} {{Int Save= [[1d20+@{selected|intelligence_save_bonus}]] | [[1d20+@{selected|intelligence_save_bonus}]]}} {{Wis Save= [[1d20+@{selected|wisdom_save_bonus}]] | [[1d20+@{selected|wisdom_save_bonus}]]}} {{Cha Save= [[1d20+@{selected|charisma_save_bonus}]] | [[1d20+@{selected|charisma_save_bonus}]]}} The Point is: Imagine you want to roll 4 Saves or maybe you want a Macro for Hability Checks.  I would like to avoid such a big table. It would be easier as a DM if you get just one roll result.