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

`Concentration check

Hi all, One of the things which in my game regurlary happens is that I forget that players need to make a concentration check if they are damaged while they have cast a spell which requires concentration. To make this more easy for everyone, I'd like to add a concentration check to my macro. The problem is that I need the highest of 10 or half of the damage taken as the 'norm' for the constitution saving throw. I've come up with a way to ask for the latter in a checkbox and I can do a constitution check but how can I automate the DC? This is what I have now: /w gm &{template:default} {{name=**Concentration Check**}} {{?{How much damage did you take?|0}]] @{selected|wtype}&{template:default} {{name=Saving Throw for @{selected|character_name}}} {{?{Saving Throw  | Constitution, Constitution= [[@{selected|d20}+[[(@{selected|constitution_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.1)))+(@{selected|npc_con_save}*@{selected|npc})]]]] - [[@{selected|d20}+[[(@{selected|constitution_save_bonus}@{selected|pbd_safe}*(1-ceil((@{selected|npc})*0.1)))+(@{selected|npc_con_save}*@{selected|npc})]]]] /em @{selected|character_name} breaks concentration if roll is lower than [[20-@{selected|level}]] @{selected|wtype}&{template:simple} {{rname=^{Concentrating}}} {{mod=@{selected|level}}} {{r1=[[@{selected|d20}]]}} @{selected|rtype}]]}} {{global=@{selected|global_skill_mod}}} @{selected|charname_output} This doens't work (obviously) but I'm a bit stuck now. Is there a way to do this without using an API?
1592727219

Edited 1592727717
Oosh
Sheet Author
API Scripter
Here's the one I use: @{selected|wtype}&{template:skill} {{rname=CONCENTRATION CHECK}} {{mod=@{selected|constitution_save_bonus}}} {{r1=[[@{selected|d20}+@{selected|constitution_save_bonus}@{selected|pbd_safe}]] versus DC[[ {(floor(?{How much damage did you take, if over 21?|0}/2)),10}kh1]]}} @{selected|rtype}+@{selected|constitution_save_bonus}@{selected|pbd_safe}]] versus DC[[ {(floor(?{How much damage did you take, if over 21?|0}/2)),10}kh1]]}} {{global=@{selected|global_save_mod}}} @{selected|charname_output} Any value of less than 22 damage will give a DC10 roll, so just leave the default value of 0 for a normal roll. Note that I've just called it CONCENTRATION CHECK for convenience, it's technically a constitution save... this matters to some people, and to avoid confusion over which bonuses may apply to your roll. Edit - whoops that's a player macro.Try this instead: @{selected|wtype}&{template:npc} @{selected|npc_name_flag} {{rname=Concentration Check}} {{mod=[[[[@{selected|npc_con_save}]][CON SAVE]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_con_save}]][CON]]]}} @{selected|rtype}+[[@{selected|npc_con_save}]][CON SAVE]]]}} {{type=Save vs **DC**[[ {(floor(?{How much damage did target take, if over 21?|0}/2)),10}kh1]]}} Edit 2 - sorry, assuming 5E sheet from the con check rules. If you're not using that sheet obviously these templates won't work
It works perfectly! Thank you very much!
Oosh, thanks so much for that. I wasted an embarrassing amount of time trying to figure out how to do this, and never came up with a good solution. M