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

If then Statement and Divine Intervention

The priestess player in one of my campaigns is unfortunately a bit forgetful :-) I would therefore like to write her a macro so that she doesn't forget the Divine Internevention (DnD5e 10th level cleric). It would be nice if the functionality of the ability was built in at the same time. I.e. the roll of a D100 is compared with the current level, if successful a certain text is displayed, if unsuccessful a different text. So far I can only manage to get a ‘1’ or a ‘0’ /r d100<@{selected|name}. Is there a way to get further from here?
1734725076
Gauss
Forum Champion
Hi Nordlicht,  Which character sheet are you using? (There are 10 D&D 5e character sheets on Roll20) If you don't know the name please supply a screenshot of the sheet. 
You'll can use this trick  to get a custom output. You'll need to create two rollable tables named '0DivineIntervention' and '1 DivineIntervention'. [[1t[[1d100<@{selected|level}]]DivineIntervention]]]
You can also use template overwriting to do this without having to use tables: &{template:default} {{name=Divine Intervention[ ](#" hidden null=) }} {{[0](#" hidden)= }} {{[1](#" hidden)= fail output }} {{[[[{0,@{selected|level}}>[[1d100]]]]](#" hidden)= success output }} {{[0](#" hidden)= [ ](#" hidden null=)}} Written on phone and untested, will rewrite it nicer tomorrow.  Edited, tidied up and tested.
We use the D&D 5E 2014 by Roll20 character sheet. Both tips work perfectly.  I should have thought of Jaren's tip myself. It already worked for my last question. Anyway, many thanks!