It looks like you're new here. If you want to get involved, click one of these buttons!
Table: BASH Roll Set: var1 ={1d6} Set: var2 ={1d6} Set: var3 ={1d6} Define: vart ={!{$var1}+{$var2}} ##vart = total of roll so far Set: vart =[when] {$var1} = {$var2} [do] {{$vart}+{$var3}}[end] ##if doubles are rolled, add var3 Total of {$vart} ({$var1},{$var2},{$var3} ##Print stuff out for debugging purposes)
Total of 0 (5,5,1 Total of 0 (6,6,3 Total of 0 (2,2,6 Total of (6,3,2 Total of (2,3,4 Total of (6,1,2 Total of 0 (3,3,2 Total of (6,3,6 Total of 0 (1,1,2 Total of (1,5,4 Total of (4,3,2
Comments
The above code returns results like this:
1 + 6 = 7
5 + 5 + 5 + 1 = 16
2 + 5 = 7
6 + 2 = 8
6 + 6 + 4 = 16
6 + 5 = 11