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

[5e OGL] Simplified Save Macros

I thought I recalled when they updated the OGL character sheet, they simplified what was needed to get a save or ability score roll for an NPC. I can't seem to find this thread though. For reference, I'm trying to simplify my all in one macro for making saves for NPCs as follows. Though I'm sure many of the characters will be missing. @{selected|wtype}&{template:npc} {{name=@{selected|token_name} }} @{selected|rtype} + ?{Save Roll |Strength, [[@{selected|npcd_str_mod}*{1@{selected|npc_str_save}0,0}=10+0@{selected|npc_str_save}]] [STR SAVE MOD] ]]}} {{rname=Strength Save}} {{r1=[[1d20 + [[@{selected|npcd_str_mod}*{1@{selected|npc_str_save}0,0}=10+0@{selected|npc_str_save}]] |Dexterity, [[@{selected|npcd_dex_mod}*{1@{selected|npc_dex_save}0,0}=10+0@{selected|npc_dex_save}]] ]]}} {{rname=Dexterity Save}} {{r1=[[1d20 + [[@{selected|npcd_dex_mod}*{1@{selected|npc_dex_save}0,0}=10+0@{selected|npc_dex_save}]] |Constitution, [[@{selected|npcd_con_mod}*{1@{selected|npc_con_save}0,0}=10+0@{selected|npc_con_save}]] ]]}} {{rname=Constitution Save}} {{r1=[[1d20 + [[@{selected|npcd_con_mod}*{1@{selected|npc_con_save}0,0}=10+0@{selected|npc_con_save}]] |Intelligence, [[@{selected|npcd_int_mod}*{1@{selected|npc_int_save}0,0}=10+0@{selected|npc_int_save}]] ]]}} {{rname=Intelligence Save}} {{r1=[[1d20 + [[@{selected|npcd_int_mod}*{1@{selected|npc_int_save}0,0}=10+0@{selected|npc_int_save}]] |Wisdom, [[@{selected|npcd_wis_mod}*{1@{selected|npc_wis_save}0,0}=10+0@{selected|npc_wis_save}]] ]]}} {{rname=Wisdom Save}} {{r1=[[1d20 + [[@{selected|npcd_wis_mod}*{1@{selected|npc_wis_save}0,0}=10+0@{selected|npc_wis_save}]] |Charisma, [[@{selected|npcd_cha_mod}*{1@{selected|npc_cha_save}0,0}=10+0@{selected|npc_cha_save}]] ]]}} {{rname=Charisma Save}} {{r1=[[1d20 + [[@{selected|npcd_cha_mod}*{1@{selected|npc_cha_save}0,0}=10+0@{selected|npc_cha_save}]] } ]] }}
About halfway down this thread is a nicely formatted one for copy and pasting into your game. Updated Universal Saving Throw Macro
Does anyone know if the math they they are using is just a different way to get to the same result that I had there before? Also, I'm not 100% sure what changed with the roll templates for 2.0, just that the description of my rolls no longer shows up when I use my own macros.
So with version 2.0 of the character sheet, the above formula is no longer necessary. Steve K. has built in the saving throws to use the base stat modifier if no value was set on the character sheet. Thus you can simply use  @{selected|npc_str_save} instead of  @{selected|npcd_str_mod}*{1@{selected|npc_str_save}0,0}=10+0@{selected|npc_str_save} for the modifier. Jeremy R. said: Does anyone know if the math they they are using is just a different way to get to the same result that I had there before? Also, I'm not 100% sure what changed with the roll templates for 2.0, just that the description of my rolls no longer shows up when I use my own macros. The math that is done in the other macro is to account for whether the selected token represents a PC or an NPC. NPCs have different saving throw attributes than PCs, so the math is necessary to determine which attribute to use. Prior to version 2.0, it was possible for the saving throw modifier of NPCs to not be set; so we devised a way to revert to using the stat modifier if not saving throw modifier was found. As for the description no longer appearing, which roll templates are you noticing this with? I don't recall seeing the npc  roll template before, but I know that npcaction  and npcatk  both have a primary roll (you could use this for the saving throw roll) and a description field.
I figured that the roll description, or rather the name that appears before the roll is {{type=}}. In my old macro, {{rtype=}} filled in both locations. for reference I was using the npc template.
And by the way, super awesome how much simpler this is. @{selected|wtype}&{template:npc} @{selected|npc_name_flag} {{type=Save}} @{selected|rtype} + ?{Save |Strength, [[@{selected|npc_str_save}]][STR]]]}} {{rname=Strength Save}} {{r1=[[1d20 + [[@{selected|npc_str_save}]][STR]  |Dexterity, [[@{selected|npc_dex_save}]][DEX]]]}} {{rname=Dexterity Save}} {{r1=[[1d20 + [[@{selected|npc_dex_save}]][DEX] |Constitution, [[@{selected|npc_con_save}]][CON]]]}} {{rname=Constitution Save}} {{r1=[[1d20 + [[@{selected|npc_con_save}]][CON] |Intelligence, [[@{selected|npc_int_save}]][INT]]]}} {{rname=Intelligence Save}} {{r1=[[1d20 + [[@{selected|npc_int_save}]][INT] |Wisdom, [[@{selected|npc_wis_save}]][WIS]]]}} {{rname=Wisdom Save}} {{r1=[[1d20 + [[@{selected|npc_wis_save}]][WIS] |Charisma, [[@{selected|npc_cha_save}]][CHA]]]}} {{rname=Charisma Save}} {{r1=[[1d20 + [[@{selected|npc_cha_save}]][CHA] } ]] }} Any chance there's other places they did this, like Skill Checks?
Yup. Skills have also been simplified. So @{selected|npc_animal_handling} works regardless if the NPC is proficient in the skill or not.
Already have it working, thank you for the reply!  For reference, my Abilities, Saves and Skills  can be found here for anyone.