Hello, I'm trying to build a macro for a deathwatch game that would roll total damage and afterwards split the total damage into its separate rolls via Reuse Rolls functionality, however I seem to be doing something wrong as it doesn't track the rolls how I want them to. I tried working this out myself and scoured multiple forums posts but I lack the knowledge to understand what needs to be corrected Here's the code &{template:default}{{name=Executor Heavy Bolter Mk. VIII}}{{Damage Total=?{Number of hits|
Two, [[[[{(2d10+1d10)}kh2+15]]+[[{(2d10+1d10)}kh2+15]]]] |
Three, [[[[{(2d10+1d10)}kh2+15]]+[[{(2d10+1d10)}kh2+15]]+[[{(2d10+1d10)}kh2+15]]]] |
Four, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Five, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Six, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Seven, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Eight, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Nine, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Ten, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
}}} {{Dmg [[[{?{Number of attacks|2},1}kl1]]](#) = $[[0]]}} {{Dmg [[[{?{Number of attacks|2},2}kl1]]](#) = $[[1]]}} {{Dmg [[[{?{Number of attacks|2},3}kl1]]](#) = $[[2]]}} {{Dmg [[[{?{Number of attacks|2},4}kl1]]](#) = $[[3]]}} {{Dmg [[[{?{Number of attacks|2},5}kl1]]](#) = $[[4]]}} {{Dmg [[[{?{Number of attacks|2},6}kl1]]](#) = $[[5]]}} {{Dmg [[[{?{Number of attacks|2},7}kl1]]](#) = $[[6]]}} {{Dmg [[[{?{Number of attacks|2},8}kl1]]](#) = $[[7]]}} {{Dmg [[[{?{Number of attacks|2},9}kl1]]](#) = $[[8]]}} {{Dmg [[[{?{Number of attacks|2},10}kl1]]](#) = $[[9]]}}
This is what rolling for 6 attacks and displaying 6 rolls looks like. The last rolls always seems to be using the roll from "?{Number of attacks|2}" However using 10 rolls (max) shows the separate instances of damage correctly I have made a functioning version of this idea but it's somewhat clunky and I'd like to improve upon it Here's the original code that I wanted to improve &{template:default}{{name=Executor Heavy Bolter Mk. VIII}}{{Damage Total=?{Number of hits|
Two, [[[[{(2d10+1d10)}kh2+15]]+[[{(2d10+1d10)}kh2+15]]]] |
Three, [[[[{(2d10+1d10)}kh2+15]]+[[{(2d10+1d10)}kh2+15]]+[[{(2d10+1d10)}kh2+15]]]] |
Four, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Five, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Six, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Seven, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Eight, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Nine, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
Ten, [[[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]+[[{(2d10+1d10)}kh2+15}]]]] |
}}} {{Damage = ?{Number of displayed hits|Two, $[[0]] +$[[1]] |
Three, $[[0]] + $[[1]] + $[[2]] |
Four, $[[0]] + $[[1]] + $[[2]] + $[[3]] |
Five, $[[0]] + $[[1]] + $[[2]] + $[[3]] +$[[4]] |
Six, $[[0]] + $[[1]] + $[[2]] + $[[3]] + $[[4]] +$[[5]] |
Seven, $[[0]] + $[[1]] + $[[2]] + $[[3]] + $[[4]] + $[[5]]+ $[[6]] |
Eight, $[[0]] + $[[1]] + $[[2]] + $[[3]] + $[[4]] + $[[5]] + $[[6]] + $[[7]] |
Nine, $[[0]] + $[[1]] + $[[2]] + $[[3]] + $[[4]] + $[[5]] + $[[6]] + $[[7]] + $[[8]] |
Ten, $[[0]] + $[[1]] + $[[2]] + $[[3]] + $[[4]] + $[[5]] + $[[6]] + $[[7]] + $[[8]] + $[[9]]}}} Any help would be greatly appreciated