I'm a complete novice when it comes to scripting, but I need a way to compare multiple dice rolls, from different attributes, and sum them into one output. I'll use an unrelated example to more easily illustrate what I'm looking for. Imagine that I have a macro that allows me to make multiple attacks and that outputs all the attack rolls and damage rolls in a single roll template. If there are three attacks, I'm dealing with six attributes: one for each attack roll and one for each damage roll. I want a way to show the sum total damage from all successful attacks on that same roll template. I can easily have the roll template only display the damage rolls of successful attacks, but how would I then sum those damage rolls into one variable that is displayed? I know that some systems, such as Fantasy Flight's Star Wars, requires scripts to interpret dice rolls, but is that at all similar to what I need?