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 .
×

Adding an "Attribute Roll" to a "Skill Roll"

Hello everyone. A friend of mine is developing a new ttrpg and creating Roll20 support for it. I'm helping him, but I in turn need some help. See, his system uses a dice system for both attributes (strength, intelligence, charisma, etcetera) and skills. So you might have a d8 allocated to your strength score and a d6 allocated to your athletics score, and you would combine their results to roll a strength-based athletics check. We already have separate macros for each, one to roll an attribute check and one to roll a skill check. What we're having trouble with is adding them together. Macros follow, with skill names edited out to preserve privacy until the kickstarter launch. &{template:default} {{name= ATTRIBUTE CHECK}} {{Result: =?{Select an Attribute|      Attribute1,Attribute1 Check: [[1d@{Attribute1}]]|      Attribute2,Attribute2 Check: [[1d@{Attribute2}]]|      Attribute3,Attribute3 Check: [[1d@{Attribute3}]]|      Attribute4,Attribute4 Check: [[1d@{Attribute4}]]|      Attribute5,Attribute5 Check: [[1d@{Attribute5}]]|      Attribute6,Attribute6 Check: [[1d@{Attribute6}]]}}} &{template:default} {{name= SKILL CHECK}} {{Result= ?{Select a Skill|      Skill1,Skill1 Check: [[1d@{Skill1}+@{Skill1Bonus}]]|      Skill2,Skill2 Check: [[1d@{Skill2}+@{Skill2Bonus}]]|      Skill3,Skill3 Check: [[1d@{Skill3}+@{Skill3Bonus}]]|      Skill4,Skill4 Check: [[1d@{Skill4}+@{Skill4Bonus}]]|      Skill5,Skill5 Check: [[1d@{Skill5}+@{Skill5Bonus}]]|      Skill6,Skill6 Check: [[1d@{Skill6}+@{Skill6Bonus}]]|      Skill7,Skill7 Check: [[1d@{Skill7}+@{Skill7Bonus}]]|      Skill8,Skill8 Check: [[1d@{Skill8}+@{Skill8Bonus}]]|      Skill9,Skill9 Check: [[1d@{Skill9}+@{Skill9Bonus}]]|      Skill10,Skill10 Check: [[1d@{Skill10}+@{Skill10Bonus}]]|      Skill11,Skill11 Check: [[1d@{Skill11}+@{Skill11Bonus}]]|      Skill12,Skill12 Check:[[1d@{Skill12}+@{Skill12Bonus}]]} ?{Select an Attribute|      Attribute1,Attribute1 Check: [[1d@{Attribute1}]]|      Attribute2,Attribute2 Check: [[1d@{Attribute2}]]|      Attribute3,Attribute3 Check: [[1d@{Attribute3}]]|      Attribute4,Attribute4 Check: [[1d@{Attribute4}]]|      Attribute5,Attribute5 Check: [[1d@{Attribute5}]]|      Attribute6,Attribute6 Check: [[1d@{Attribute6}]]}}} How do I set it up so that clicking "SKILL CHECK" calls up a skill list to select from, then calls up an attribute list to select an attribute to add to the roll and have the macro add them automatically? EDIT: I've gotten it to the point where it shows both results in the same macro, but I'd still like to set it up so it automatically adds them together.
1668273240

Edited 1668273323
Kraynic
Pro
Sheet Author
I would recommend restructuring this a little, though this may depend on how large the skill list is.&nbsp; I would recommend writing a macro for each skill, so that the only query is for the specific "helper" attribute being used.&nbsp; If you don't do that, it will be really difficult to get any sort of labels that are visible other than on mouseover. I would create the macros following this rough template: &amp;{template:default} {{name=Acrobatics Test}} {{Result=[[1d@{acrobatics}[acrobatics]+?{Attribute?|Strength,1d@{strength}[strength]|Agility,1d@{agility}[agility]}]]}} The acrobatics, strength, and agility that are wrapped in single brackets will show up as formula labels when you mouse over the roll in chat.&nbsp; That way, you can tell which value is from the skill, which helper attribute was used and what value it returned within the formula. If you are setting up this game system by way of setting the character sheet to "None" and simply using the Attributes &amp; Abilities tab to set up the characters, I would recommend setting up a macro mule sheet to contain all the individual macros, and then you can create a chat menu that enables everyone to use that one set up macros without having to duplicate them for each character.&nbsp; Details on those techniques can be found in the Roll20 Tricks thread (the first post is an index) and on the wiki. Chat menus: <a href="https://app.roll20.net/forum/post/5899495/roll20-tips-and-tricks-innovative-solutions-to-common-problems/?pageforid=5927072#post-5927072" rel="nofollow">https://app.roll20.net/forum/post/5899495/roll20-tips-and-tricks-innovative-solutions-to-common-problems/?pageforid=5927072#post-5927072</a> <a href="https://wiki.roll20.net/Chat_menu" rel="nofollow">https://wiki.roll20.net/Chat_menu</a> Macro sheets: <a href="https://app.roll20.net/forum/post/5899495/roll20-tips-and-tricks-innovative-solutions-to-common-problems/?pageforid=5924364#post-5924364" rel="nofollow">https://app.roll20.net/forum/post/5899495/roll20-tips-and-tricks-innovative-solutions-to-common-problems/?pageforid=5924364#post-5924364</a> <a href="https://wiki.roll20.net/Macro_Character_Sheet" rel="nofollow">https://wiki.roll20.net/Macro_Character_Sheet</a>