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 .
×
Stuck in a login loop? Try manually signing out and back in before launching your game. Otherwise, contact the Help Center!
Create a free account

[PF] Trying to roll saving throw twice, but only display the highest roll

1515369070

Edited 1515373578
I'm using the Pathfinder character sheet, and I have a character who can choose to roll her Reflex save twice, and take the best result. Now, I know I can roll it as: /roll 2d20kh1 + @{character_name|Ref} But I'd like to have it output using the standard saving throw template, without cluttering up Chat by displaying two results. Is this even possible to do?  EDIT: I think I've figured it out, I'm just bad at using templates:  &{template:pf_defense} {{character_name=@{character_name}}} {{name=^{reflex}}} {{^{save}=[[ 2d20kh1 + @{character_name|Ref} ]]}} Now I just need to figure out how to get @{toggle_rounded_flag} and {{color=@{rolltemplate_color}}} to work. 
1515373457

Edited 1515377939
vÍnce
Pro
Sheet Author
I think I'll put your trick on the wiki.  ;-) What problem are you having with @{toggle_rounded_flag}?  It's just used to toggle rounding the roll template corners...
1515373787

Edited 1515374766
Vince said: I think I'll put your trick on the wiki.  ;-) What problem are you having with @{toggle_rounded_flag}?  It's just used to toggle rounding the roll template corners... If I put it in a custom macro, it just throws "TypeError: Cannot read property 'substring' of undefined" ; I get the same thing if I try changing the header color using {{color=@{rolltemplate_color}}}. I know it's not necessary for the macro to work, it's just an aesthetic thing.  EDIT: Fixed the round corners using @{character_name|toggle_rounded_flag}. Again, I'm just bad at templates. 
1515374858

Edited 1515374989
vÍnce
Pro
Sheet Author
It's because they pull their values from other "optional" attributes located on the sheet.  All the toggle_rounded_flag does is either add/remove {{rounded=rounded}} to the roll template.  If {{rounded=rounded}} is present in the macro the roll template get's rounded corners.  If {{rounded=}} is used in the macro, corners are not rounded. @{rolltemplate_color} also gets it's value from the sheet.  You can substitute one of the defined colors used on the sheet; (use lowercase) white, grey, darkgrey, pink, darkpink, red, darkred, orange, darkorange, chocolate, sandybrown, peru, saddlebrown, tan, yellow, gold, darkyellow, green, darkgreen, olive, darkolivegreen, teal, darkteal, cyan, darkcyan, azure, darkazure, blue, darkblue, purple, darkpurple, violet, darkviolet ie {{color=white}}
I thought I had done the substitution correctly before, but I guess not. Thank you so much for the help! 
1515376199
vÍnce
Pro
Sheet Author
Macro-text on the sheet assume the attributes come from that character, but when creating custom macros you need to specify by including "selected|", "target|", or "character name|" etc. when pulling attribute values.