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

How would I go about removing Bless from this macro?

A while ago I got this macro from... somewhere, in preparation for DMing a 5E session. It's an NPC token action macro that rolls saving throws, querying Advantage and what attribute to roll for: @{selected|wtype}&{template:simple} @{selected|rtype}?{Save |Strength,+[[(@{selected|strength_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_str_save}*@{selected|npc})]][STR SAVE] ]]}} {{rname=^{strength-save-u}}} {{mod=[[ [[(@{selected|strength_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_str_save}*@{selected|npc})]][STR SAVE] ]]}} {{r1=[[@{selected|d20}+[[(@{selected|strength_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_str_save}*@{selected|npc})]][STR SAVE] ]] |Dexterity,+[[(@{selected|dexterity_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_dex_save}*@{selected|npc})]][DEX SAVE] ]]}} {{rname=^{dexterity-save-u}}} {{mod=[[ [[(@{selected|dexterity_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_dex_save}*@{selected|npc})]][DEX SAVE] ]]}} {{r1=[[@{selected|d20}+[[(@{selected|dexterity_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_dex_save}*@{selected|npc})]][DEX SAVE] ]] |Constitution,+[[(@{selected|constitution_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_con_save}*@{selected|npc})]][CON SAVE] ]]}} {{rname=^{constitution-save-u}}} {{mod=[[ [[(@{selected|constitution_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_con_save}*@{selected|npc})]][CON SAVE] ]]}} {{r1=[[@{selected|d20}+[[(@{selected|constitution_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_con_save}*@{selected|npc})]][CON SAVE] ]] |Intelligence,+[[(@{selected|intelligence_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_int_save}*@{selected|npc})]][INT SAVE] ]]}} {{rname=^{intelligence-save-u}}} {{mod=[[ [[(@{selected|intelligence_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_int_save}*@{selected|npc})]][INT SAVE] ]]}} {{r1=[[@{selected|d20}+[[(@{selected|intelligence_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_int_save}*@{selected|npc})]][INT SAVE] ]] |Wisdom,+[[(@{selected|wisdom_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_wis_save}*@{selected|npc})]][WIS SAVE] ]]}} {{rname=^{wisdom-save-u}}} {{mod=[[ [[(@{selected|wisdom_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_wis_save}*@{selected|npc})]][WIS SAVE] ]]}} {{r1=[[@{selected|d20}+[[(@{selected|wisdom_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_wis_save}*@{selected|npc})]][WIS SAVE] ]] |Charisma,+[[(@{selected|charisma_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_cha_save}*@{selected|npc})]][CHA SAVE] ]]}} {{rname=^{charisma-save-u}}} {{mod=[[ [[(@{selected|charisma_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_cha_save}*@{selected|npc})]][CHA SAVE] ]]}} {{r1=[[@{selected|d20}+[[(@{selected|charisma_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_cha_save}*@{selected|npc})]][CHA SAVE] ]] }}} {{global=@{selected|global_save_mod}}} @{selected|charname_output} It's been a massive time saver not having to open and close sheets constantly - but the only gripe I have with this sheet is it automatically seems to roll Bless (+1d4 on Saving Throws) whenever I run it. While not problematic in itself, it has tripped me up a few times and I'd rather it not roll Bless. Can anyone more experienced in this help me pick apart where Bless is being rolled in this script? I can't really tell what I need to remove.
1620903388

Edited 1620905061
Oosh
Sheet Author
API Scripter
The only way to specifically remove Bless would be to remove it from the Character sheet. I can't remember how or why, but it seems to end up on some NPC sheets by default. So your two options are: 1. Switch the NPC sheet to a PC sheet, on the Core tab delete Bless and any other global save modifiers that are on there. You may need to enable the global save field in the Options (cog icon) tab if you can't find it on the Core tab. Then switch the sheet back to NPC. If this is happening with a lot of NPCs, this could take some time without API access. 2. Disable all global modifiers in the macro. NPC's rarely need to worry about these anyway, and without API it's a hassle applying them on the NPC sheet. Right at the end of the macro, the second-to-last property is: {{global=@{selected|global_save_mod}}} Delete that and it won't apply any global modifiers, whether or not the sheet has any enabled. This is definitely the easy option. If you wanted to go with the first option, I could probably throw together a browser console script to expedite the process. edit - here we go: if you run this from the browser console (F12 and select the "console" tab) it should turn off all global saves on NPC sheets. It won't delete the modifier, just uncheck Campaign.characters.models.forEach(c=> { if (c.attribs.models.find(a=>/^npc$/i.test(a.attributes.name))?.attributes.current == 1) { c.attribs.models.forEach(a=> { if (/global_save_active_flag/i.test(a.attributes.name) && a.attributes.current != 0) { console.log(`Found active global on character "${c.attributes.name}". Disabling...`); a.set({current: '0'}); c.attribs.models.find(a=>/global_save_mod$/i.test(a.attributes.name))?.set({current: ''}); } }); } });
Dude that was super insightful, thank you. I plan to just edit the template creature I use to be without Bless for future sessions, but your script was super helpful for editing my current creatures down. Thanks a ton for the help, seriously went above and beyond there.