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

Saving Throws with Global Save Modifier Macro

Greetings, I create a Saving throw macro but cant find a way to get the Global Save Modifier on the template, could someone help me please? Here is the code:

&{template:simple}{{?{Roll Type?|Normal,normal|Advantage,advantage|Disadvantage,disadvantage}=1}}?{Saving Throw?|STR,{{rname=Strength Save}}{{mod=@{strength_save_bonus}}} {{r1=[[1d20+@{strength_save_bonus}]]}}{{r2=[[1d20+@{strength_save_bonus}]]}}|DEX,{{rname=Dexterity Save}}{{mod=@{dexterity_save_bonus}}} {{r1=[[1d20+@{dexterity_save_bonus}]]}}{{r2=[[1d20+@{dexterity_save_bonus}]]}}|CON,{{rname=Constitution Save}}{{mod=@{constitution_save_bonus}}} {{r1=[[1d20+@{constitution_save_bonus}]]}}{{r2=[[1d20+@{constitution_save_bonus}]]}}|INT,{{rname=Intelligence Save}}{{mod=@{intelligence_save_bonus}}} {{r1=[[1d20+@{intelligence_save_bonus}]]}}{{r2=[[1d20+@{intelligence_save_bonus}]]}}|WIS,{{rname=Wisdom Save}}{{mod=@{wisdom_save_bonus}}} {{r1=[[1d20+@{wisdom_save_bonus}]]}}{{r2=[[1d20+@{wisdom_save_bonus}]]}}|CHA,{{rname=Charisma Save}}{{mod=@{charisma_save_bonus}}} {{r1=[[1d20+@{charisma_save_bonus}]]}}{{r2=[[1d20+@{charisma_save_bonus}]]}}|SAN,{{rname=Sanity Save}}{{mod=@{sanity_save_bonus}}} {{r1=[[1d20+@{sanity_save_bonus}]]}}{{r2=[[1d20+@{sanity_save_bonus}]]}}}{{charname=@{character_name}}}

Bless=@{global_save_mod}

June 18 (4 years ago)

Edited June 18 (4 years ago)
David M.
Pro
API Scripter

This is what I use. I believe I stole this from Oosh ages ago. 

The global_save_mod is added in the bolded portion below. Also, using the rtype attribute for Adv/DisAdv rather than querying every time in case sheet is set up for Always/Query/etc., and will handle proficiency dice if used (or ignored if not).


@{selected|wtype}&{template:simple} @{selected|rtype}?{Saving Throw|Strength, +@{selected|Strength_save_bonus}@{selected|pbd_safe}[STR SAVE]]]}} {{rname=Strength Save}&#125 {{mod=@{selected|Strength_save_bonus}}} {{r1=[[@{selected|d20}+@{selected|Strength_save_bonus}@{selected|pbd_safe}[STR SAVE]]]|Dexterity, +@{selected|Dexterity_save_bonus}@{selected|pbd_safe}[DEX SAVE]]]}} {{rname=Dexterity Save}&#125 {{mod=@{selected|Dexterity_save_bonus}}} {{r1=[[@{selected|d20}+@{selected|Dexterity_save_bonus}@{selected|pbd_safe}[DEX SAVE]]]|Constitution, +@{selected|Constitution_save_bonus}@{selected|pbd_safe}[CON SAVE]]]}} {{rname=Constitution Save}&#125 {{mod=@{selected|Constitution_save_bonus}}} {{r1=[[@{selected|d20}+@{selected|Constitution_save_bonus}@{selected|pbd_safe}[CON SAVE]]]|Intelligence, +@{selected|Intelligence_save_bonus}@{selected|pbd_safe}[INT SAVE]]]}} {{rname=Intelligence Save}&#125 {{mod=@{selected|Intelligence_save_bonus}}} {{r1=[[@{selected|d20}+@{selected|Intelligence_save_bonus}@{selected|pbd_safe}[INT SAVE]]]|Wisdom, +@{selected|Wisdom_save_bonus}@{selected|pbd_safe}[WIS SAVE]]]}} {{rname=Wisdom Save}&#125 {{mod=@{selected|Wisdom_save_bonus}}} {{r1=[[@{selected|d20}+@{selected|Wisdom_save_bonus}@{selected|pbd_safe}[WIS SAVE]]]|Charisma, +@{selected|Charisma_save_bonus}@{selected|pbd_safe}[CHA SAVE]]]}} {{rname=Charisma Save}&#125 {{mod=@{selected|Charisma_save_bonus}}} {{r1=[[@{selected|d20}+@{selected|Charisma_save_bonus}@{selected|pbd_safe}[CHA SAVE]]]}}} {{global=@{selected|global_save_mod}}} @{selected|charname_output}

June 18 (4 years ago)

If you select a character and use this command, what do you get back in chat?

@{selected|global_save_mod}

I'm guessing this is using the D&D 5E by Roll20 Character sheet.

You probably need to add the Bless=@{global_save_mod} into the {{Mod= ... }} section, but it might cause issues with html parsing to just throw it in there.

I get this when I use my macro:

It works, but it looks terrible, lol. @{selected|global_save_mod} add the bless (or any global box save selected), thats why I want to do something like David post. Just need to add the Sanity roll, and change it to select a target.

Will do the changes and post it later im case someone want it, thanks guys.