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] Reliable Talent with advantage & disadvantage

I've been trying to write a macro for Reliable Talent (basically an ability that allows you to treat any roll of 9 or lower on a d20 as a 10), which also allows you to toggle advantage & disadvantage (or roll normally), but the amount of nesting required for such a macro strikes me as absurd. Can you even write a macro for something like this or should I just resign myself to rolling a regular Reliable Talent macro twice?
1583143750

Edited 1583144593
Ziechael
Forum Champion
Sheet Author
API Scripter
Nesting can be a 'fun' rollercoaster of emotion for an aspiring macro writer! This would be your core reliable talent roll, you'd need to add the skills as needed though: [[?{Roll|Standard,{1d20,10d1cs0cf0}kh1|Advantage,{[[{1d20,1d20}kh1]],10}kh1|Disadvantage,{[[{1d20,1d20}kl1]],10}kh1} + ?{Skill|Skill name 1,@{<name/selected/target>|<skill-mod 1 attribute}|Skill name 2,@{<name/selected/target>|<skill-mod 2 attribute}} + ?{Modifier|0} ]] etc etc And for readability since code blocks don't wrap: [[?{Roll|Standard,{1d20,10d1cs0cf0}kh1|Advantage,{[[{1d20,1d20}kh1]],10}kh1|Disadvantage,{[[{1d20,1d20}kl1]],10}kh1} + ?{Skill|Skill name 1,@{<name/selected/target>|<skill-mod 1 attribute}|Skill name 2,@{<name/selected/target>|<skill-mod 2 attribute}} + ?{Modifier|0} ]] etc etc
Thanks, that actually really helps!
1583158249
Ziechael
Forum Champion
Sheet Author
API Scripter
Cool, glad it made sense! If you need any more info on the inner workings of what that mess means just shout, otherwise enjoy your descent into madness :)