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] @{PC_NAME|d20} Reliable Talent dis/adv

1512076210

Edited 1512080556
Before the last major OGL update I used the following Abilities to apply Reliable Talent and it worked nicely, please note that in italic are placeholders. name content skill SKILL_NAME_CAMEL_CASE SKILL_NAME [Normal](~ PC_NAME |skill SKILL_NAME_CAMEL_CASE Normal) [Advantage](~ PC_NAME |skill SKILL_NAME_CAMEL_CASE Adv) [Disadvantage](~ PC_NAME |skill SKILL_NAME_CAMEL_CASE Disadv) skill SKILL_NAME_CAMEL_CASE Normal [[{1d20@{ PC_NAME |halflingluck}, {10} }kh1+[[@{ PC_NAME | ATTRIBUTE_NAME_SKILL_BONUS }]][ SKILL_3_LETTERS_CODE ]]] normal skill SKILL_NAME_CAMEL_CASE Adv [[{2d20kh1@{ PC_NAME |halflingluck}, {10} }kh1+[[@{ PC_NAME | ATTRIBUTE_NAME_SKILL_BONUS }]][ SKILL_3_LETTERS_CODE ]]] advantage, if [[@{ PC_NAME |halflingluck_flag}]] verify if 1/2 rolls is a 1 and if so replace it w/ [[d20]] (skip reading rest if read "if 0") skill SKILL_NAME_CAMEL_CASE Disadv [[{2d20kl1@{ PC_NAME |halflingluck}, {10} }kh1+[[@{ PC_NAME | ATTRIBUTE_NAME_SKILL_BONUS }]][ SKILL_3_LETTERS_CODE ]]] disadvantage an example of this is skillAcrobatics Acrobatics [Normal](~Alatos Thuibuld|skillAcrobaticsNormal) [Advantage](~Alatos Thuibuld|skillAcrobaticsAdv) [Disadvantage](~Alatos Thuibuld|skillAcrobaticsDisadv) skillAcrobaticsNormal [[{1d20@{Alatos Thuibuld|halflingluck}, {10} }kh1+[[@{Alatos Thuibuld|acrobatics_bonus}]][ACR]]] normal skillAcrobaticsAdv [[{2d20kh1@{Alatos Thuibuld|halflingluck}, {10} }kh1+[[@{Alatos Thuibuld|acrobatics_bonus}]][ACR]]] advantage, if [[@{Alatos Thuibuld|halflingluck_flag}]] verify if 1/2 rolls is a 1 and if so replace it w/ [[d20]] (skip reading rest if read "if 0") skillAcrobaticsDisadv [[{2d20kl1@{Alatos Thuibuld|halflingluck}, {10} }kh1+[[@{Alatos Thuibuld|acrobatics_bonus}]][ACR]]] disadvantage and it caters to the halfling trait Lucky as much as I could. With the post-update version I can't seem to reach that anymore as seen as when triggering the skill check Insight making the macro @{Alatos Thuibuld|wtype}&{template:simple} {{rname=^{insight-u}}} {{mod=@{Alatos Thuibuld|insight_bonus}}} {{r1=[[@{Alatos Thuibuld|d20}+@{Alatos Thuibuld|insight_bonus}@{Alatos Thuibuld|pbd_safe}]]}} @{Alatos Thuibuld|rtype}+@{Alatos Thuibuld|insight_bonus}@{Alatos Thuibuld|pbd_safe}]]}} @{Alatos Thuibuld|global_skill_mod} @{Alatos Thuibuld|charname_output} I'm afraid I'll have to stop automatically looking for the possibility of Lucky thus make 2 versions, one w/ Lucky and one w/o. I have the suspicion if I can access what's underneath @{ PC_NAME |d20} that I could work something out for Reliable Talent. I tried inspecting a sheet then searching for "d20" but it gave 100s of results. Thank you kindly for your help update 1: in table s/[ACR]/[SKILL_3_LETTERS_CODE]/
1512077512

Edited 1512077546
The d20 attribute can be manipulated through the CORE DIE ROLL attribute. The d20 attribute is simply @{core_die_roll}@{halflingluck}, so if the halfling luck checkbox is this will append ro to the end of the core die roll.
Also I don't think you need to worry about halfling luck with advantage. By default any ones will be rerolled when putting ro  in the roll. However this can be a problem with disadvantage rolls because if a halfling rolls two 1s at disadvantage, they must take the 1 because halfling luck only allows them to replace one of the rolls. While it is an unlikely scenario it is possible. Personally I wouldn't worry with it, but that's your call as the DM.
Kyle G. said: The d20 attribute is simply @{core_die_roll}@{halflingluck} Would you let me know how you found that out?
1512080468

Edited 1512080479
I looked at the HTML that is available on the github. There is a sheet worker that is triggered when either the core die roll or halfling luck checkbox change. on("change:core_die change:halflingluck_flag", function() { getAttrs(["core_die","halflingluck_flag"], function(v) { core = v.core_die && v.core_die != "" ? v.core_die : "1d20"; luck = v.halflingluck_flag && v.halflingluck_flag === "1" ? "ro<1" : ""; update = {}; update["d20"] = core + luck; if(!v.core_die || v.core_die === "") { update["core_die"] = "1d20"; } setAttrs(update); }); });
1512081102

Edited 1512081503
I tried @{ PC_NAME |core_die_roll} @{ PC_NAME |halflingluck} @{ PC_NAME |core_die_roll}@{ PC_NAME |halflingluck} and they all give multiple errors, all start with "No attribute was found for" for each part (1 core_die_roll, 2 halflingluck, 3 both) and finishing with "SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "A" found.".
You should be able to simply use @{PC_NAME|d20} in your macros, since it accounts for the halfling luck as well as the core die roll. You don't need to "reinvent the wheel"
If you look at the OP table, beside the 1st content row (content excluding the header), the beginning of each column content is a different use of d20, a plain one, one with adv(antage), one with disadv. As in this thread title, I need to to implement Reliable Talent and the best way I came up with is with Abilities as in the OP table.
I understand that but you could follow how the character sheet handles advantage/disadvantage on initiative rolls. To handle the roll, then compare this result to 10 and take the higher, then add the modifier to the roll. Normal - @{d20} Advantage - {@{d20},@{d20}}kh1 Disadvantage - {@{d20}, @{d20}}kl1
1512163224

Edited 1512163306
Thank you for your alternative. There's no way to access the different parts of @{ PC_NAME |d20} separately?
Also I was wrong, it isn't @{core_die_roll}. The correct attribute is @{core_die}.  However the problem has to deal with halfling luck. The @{halflingluck_flag} attribute is either going to be 0 or 1. When this value is changed, the sheet workers for the character sheet adds ro<1 to the @{d20} attribute on a 1 (halfling luck is checked) or removes it from the attribute on a 0 (halfling luck is not checked). Because this ro<1 is only ever set on the @{d20} attribute, it is not possible to call the individual attribute in your macro. Thus my push for your to use the alternative method above.
[[ {1d20+0, 0d0 + 10}kh1 ]] worked for me with reliable talent. 
1516041467

Edited 1516041628
I prefer to do it as in the OP skill SKILL_NAME_CAMEL_CASE Normal and its example skillAcrobaticsNormal., how I'm implementing it ATM: Acrobatics normal [[{@{d20}, {10} }kh1+[[@{acrobatics_bonus}]][ACR]]]