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

Please help w/ macro for Saving throw 5e style. (moved)

1494564677
Justin H.
Marketplace Creator
I am trying to make 5e formatted a saving throw macro based on one that The Aaron and Sylvre helped me with a while back. I like where it's headed but I'm stuck on getting the text to fall where I want it. It took me a awhile to get the rolls to stop having the curlys around it but I can't get the {{description=xxx}} to take based on "I have no idea where to put it" I would also like the 'bar' to be higher in the macro [directly under Saving Throw]; having the {{name=xxx}} be the save with mod bonus (not red); and the {{description=xxx}} be the rolls themselves. What I have so far: &{template:npc} {{rname=Saving Throw}} {{name= ``?{Which ability| Strength, Strength [[@{npcd_str_mod} + @{strength_save_prof}]] | Dexterity, Dexterity [[@{npcd_dex_mod} + @{dexterity_save_prof}]] | Constitution, Constitution [[@{npcd_con_mod} + @{constitution_save_prof}]] | Intelligence, Intelligence [[@{npcd_int_mod} + @{intelligence_save_prof}]] | Wisdom, Wisdom [[@{npcd_wis_mod} + @{wisdom_save_prof}]] | Charisma, Charisma [[@{npcd_cha_mod} + @{charisma_save_prof}]] }`` [[ 1d20 + ?{Which ability} ]] | [[ 1d20 + ?{Which ability} ]] }}
Give this a shot: &{template:npc} {{rname=Saving Throw}} {{always=1}} {{name=?{Which ability|   Strength, [Strength]([[@{selected|npcd_str_mod} + @{selected|strength_save_prof}]]) |   Dexterity, [Dexterity]([[@{selected|npcd_dex_mod} + @{selected|dexterity_save_prof}]]) |   Constitution, [Constitution]([[@{selected|npcd_con_mod} + @{selected|constitution_save_prof}]]) |   Intelligence, [Intelligence]([[@{selected|npcd_int_mod} + @{selected|intelligence_save_prof}]]) |   Wisdom, [Wisdom]([[@{selected|npcd_wis_mod} + @{selected|wisdom_save_prof}]]) |   Charisma, [Charisma]([[@{selected|npcd_cha_mod} + @{selected|charisma_save_prof}]]) } }} {{r1=[[ 1d20 + ?{Which ability} ]]}} {{r2=[[ 1d20 + ?{Which ability} ]] }}
1494599167

Edited 1494600803
Justin H.
Marketplace Creator
Excellent. It's perfect! Looks like you added {always=1}.  Can you tell me what this does? Why the `` was removed, and why you [ ] the name of the ability? Thank you. 
1494615464

Edited 1494615795
Justin H. said: Looks like you added {always=1}. It means "always show both {{r1}} and {{r2}}", instead of showing just one or neither of them. Why the `` was removed I noticed the code formatting was causing formatting issues, so I removed it. why you [ ] the name of the ability? It's part of a little trick that I use to hide numbers or calculations from being displayed in the Text Chat. For example, My [Strength](10) is [[ [Strength](10) + {0} ]] The above code, when entered into the Text Chat, looks like this: Outside of rolls, [Strength] is parsed as part of a Markdown link , which "hides" the (URL)—a number in this case. Within rolls, [Strength] is parsed as a Roll Label .
1494616387
Justin H.
Marketplace Creator
Makes sense. Thank you so much.
You're very welcome! Happy rolling!