Silvyre said: HarbingerLeo , I'm having difficulty understanding what you are referring to as "known and fixed" and/or "redundant code". Clarification would be appreciated. Apologies. Of course! HarbingerLeo said: So what I'm left
with is 98% of the same rolls with d4, d6, or d8 tacked on to the end
depending on if that roll is used for a attack, counter-attack, or
parry. For simplicity I'll say that 98% looks like this: /roll {d6,d6}kh1 Like I originally said. I have three rolls I needed to make macros for: /roll {d6,d6, d8}kh1 /roll {d6,d6}kh1 /roll {d6,d6, d4}kh1 Each one has a different dedicated use. Each roll is use in a unique situation each time. Anytime the first roll is used, it will always only be a d8. Anytime the second roll is used it will *never* have a bonus. Anytime the third roll is called it will always only have a d4. I could code three separate macros and call them each separate, but there's a lot more to the real roll then "just" {d6,d6}kh1. There are two problems why I asked (and maybe shouldn't have) a very specific question: 1) As I said anytime the macro is called, is to save typing. It's much easier and much more successful if the macro can just be entered or clicked and whatever little variation there are just baked in. Having to pause to enter information in a query technically works, but works against making things easiest. In this unique case each time the macro is reached for it's for a specific use that's always constant. That is, when you reach for it you already know what the answer to the question is and it will always be the same answer. Think of it as having a Longsword +5 vs orcs. Your either using it against orcs and getting the +5, or your not. The condition for getting the bonus is never going to change. If your going to be fighting orcs a lot, it's "easier" (especially in my case) to just make one macro for fighting orc, and one macro for not fighting orc. 2) Programmer logic: There's a good bit more to the roll then just the core "/roll {d6,d6}kh1" then I showed you. It's actually 4 to 6dice different dice each referencing a character sheet and the entire roll treated a little different at different points. Sometimes it's the same roll but with a target number of success instead of the highest showing dice. Same roll, different uses, and different bonuses. -SO- I could copy any paste the these 4to6 different dice into dozen of different places. That has the problem of "What if something in the setup those 4 to 6 dice changes?" Like say it expands to 7dice or I suddenly re roll those same dice under a new set of roll commands? I could renter the entire string of dice again and go back and change every single macro to update it all one at a time. Then pray I did it right the first time without error. -OR- I could enter the roll once in a central place, then have each macro that uses those dice reference that one single central place. I only have to enter the entire string once. As a side benefit anytime I have to change anything (because something new happened or I made a mistake) I just have to change the central place, any macros that depend on that same roll are then automatically updated. Edit: Think of it as having a variable strength bonus. If you get plus to damage based on your strength? You could calculate that bonus then add the literal +1 or +2, etc. to each and every macro -or- you could have each macro just lookup what the bonus to damage is. (For say when you get +5strength because the cleric just passed out a strength buff) Same idea, just a bit more complicated in use.