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 merry + bright! 🎄
Create a free account

Need some help with a universal saving throw macro breaking (total noob, 5e!)

Hello gents and ladies! So I grabbed r20 this week in order to help with some of the quarantine madness and i'm running into a few issues. Very experienced with 5e though!&nbsp; Firstly, I grabbed the universal skill check/saving throw macro from this thread here -&nbsp; <a href="https://app.roll20.net/forum/post/5591512/5e-ogl-universal-saving-throw-macro-updated-for-v2-dot-0" rel="nofollow">https://app.roll20.net/forum/post/5591512/5e-ogl-universal-saving-throw-macro-updated-for-v2-dot-0</a> It works for the first time or two that I use it, but then i'l hit the roll button, click on the drop down menu, and it shows the code that i've put in to the macro in the menu rather than the nice tidy list of the options. I've set it up as a macro in the sidebar bit rather than an ability on a character sheet, and have tried it both as a token macro and in the macro bar and the same thing happens. In the original thread it said opening the macro itself can break it, but this has been occurring even when not doing that. Here's the code i'm using for the saving throw -&nbsp; @{selected|wtype}&amp;{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] ]]&amp;#125;&amp;#125; {{rname=^{strength-save-u&amp;#125;&amp;#125;&amp;#125; {{mod=[[ [[(@{selected|strength_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_str_save}*@{selected|npc})]][STR SAVE] ]]&amp;#125;&amp;#125; {{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] ]]&amp;#125;&amp;#125; {{rname=^{dexterity-save-u&amp;#125;&amp;#125;&amp;#125; {{mod=[[ [[(@{selected|dexterity_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_dex_save}*@{selected|npc})]][DEX SAVE] ]]&amp;#125;&amp;#125; {{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] ]]&amp;#125;&amp;#125; {{rname=^{constitution-save-u&amp;#125;&amp;#125;&amp;#125; {{mod=[[ [[(@{selected|constitution_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_con_save}*@{selected|npc})]][CON SAVE] ]]&amp;#125;&amp;#125; {{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] ]]&amp;#125;&amp;#125; {{rname=^{intelligence-save-u&amp;#125;&amp;#125;&amp;#125; {{mod=[[ [[(@{selected|intelligence_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_int_save}*@{selected|npc})]][INT SAVE] ]]&amp;#125;&amp;#125; {{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] ]]&amp;#125;&amp;#125; {{rname=^{wisdom-save-u&amp;#125;&amp;#125;&amp;#125; {{mod=[[ [[(@{selected|wisdom_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_wis_save}*@{selected|npc})]][WIS SAVE] ]]&amp;#125;&amp;#125; {{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] ]]&amp;#125;&amp;#125; {{rname=^{charisma-save-u&amp;#125;&amp;#125;&amp;#125; {{mod=[[ [[(@{selected|charisma_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_cha_save}*@{selected|npc})]][CHA SAVE] ]]&amp;#125;&amp;#125; {{r1=[[@{selected|d20}+[[(@{selected|charisma_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.00001)))+(@{selected|npc_cha_save}*@{selected|npc})]][CHA SAVE] ]] }}} @{selected|global_save_mod} @{selected|charname_output} Also, is there a way to tie the attributes of a token to a character? For example, if i'm dragging in a load of bandits, do I have to edit the settings (permissions for edits, what appears in the coloured balls, auras etc etc) for each individual token or is there a way to set it so each time I drop a character in it's got that all set up?&nbsp; Thanks dudes, i'l probably be asking all kinds of annoying questions over the next few weeks so apologies in advance.&nbsp;
1584572057
GiGs
Pro
Sheet Author
API Scripter
Joseph G. said: It works for the first time or two that I use it, but then i'l hit the roll button, click on the drop down menu, and it shows the code that i've put in to the macro in the menu rather than the nice tidy list of the options.&nbsp; It looks like that macro contains html entities, which get erased if you ever open a macro containing them. So you'll need to erase the macros contents, and copy the origial macro again, paste it in, close the macro, and then do not open it ever again . (Or keep a copy of the original somewhere safe.) This is why it worked once or twice-&nbsp; chances are, you opened the macro, and it stopped working from then on. Note that if you set it up as Ability, instead of a Macro, this does not happen - so its generally better to save this kind of macro as abilities. Regarding the tying attributes to tokens, you are better off asking that question in another thread (keep one thread per specific related problem, to get the best help). But the answer is, yes, it;s possible, and it's covered in the wiki here:&nbsp; <a href="https://wiki.roll20.net/Linking_Tokens_to_Journals" rel="nofollow">https://wiki.roll20.net/Linking_Tokens_to_Journals</a>
Amazing! Thanks a bunch dude.&nbsp;