Hello again a inexpert macroer here, today I was thinking how to code a specific macro for automate our table top attack/damage mechanic and I could not manage to understand how to develop a right solution. What I want to achieve: Our table top game has the following mechanic for rolling hits and damage with weapons/abilities: Every character statistics are in a form of dice sizes ( d6, d8 etc.) so the weapons / abilities uses those dices to confirm a hit and subsequently the calculation of damage, here is a concrete example Long sword hits if [ Dex roll + Con roll ] > Enemy Defense value , if hit is confirmed roll damage as [ Highest roll of two stats + 3 ] So my objective is to deploy a macro that alongside a template (Default one) shows One row : first roll result + second roll result = total of sum for the hit Second row: highest of the two rolls + fixed number = total damage What i tried till now: I tackled only half of the problem, I can with no problem complete the code for the one row to show the result with a in line roll like this ...various template code...[[ [[ @{dex}[dex] ]] + [[ @{con}[con] ]] ]] {{ Hit value= $[[0]] + $[[1]] == $[[2]]}} But now I'm stuck with the second row, I've read the Dice Reference for all possibile tools , especially regarding the success rolls against a value and the keep the highest rolls; but I fail to apply them to my problem and cannot find a way to nest these tools in my roll without breaking the first row, for instance: If I try to implement the Keep High in the following form: [[ {[[ @{dex}[dex] ]] + [[ @{con}[con] ]]}kh1 ]] I lose the total sum since one dice is dropped so the first row indexing is broken From my research on forum I cannot use the index in any calculation so I cannot do a thing like this [[ [[ @{dex}[dex] ]] + [[ @{con}[con] ]] ]] {{ Hit value= $[[0]] + $[[1]] == $[[2]]}} {{second row=[[ {$[[0]],$[[1]]}kh1 + 3 ]] }} Is there any way to tackle down this problem of mine? I do not have access to the API but my GM does have it , in the case that this problem requires API scripting how could I tackle it ?