
Hello,
I'd like to ask for help on a thing I'm doing out of curiosity. I know there's an easier (and simpler, and probably more efficient) way to do this, but it's interesting to me to see what the boundaries I can push are. So:
This is (WIP) macro to automatically roll a hemocraft die (from Blood Hunter) using if-then statements from inline rolls. It doesn't, as of right now, work, but I've made the statements individually work.
I'd like some help making the situation I've created function, if that's at all possible!
&{template:simple} [[ [[{{@{Level},4}>5}*(1-0) + 0]] + [[{{@{Level},10}>11}*(1-0) + 0]] + [[{{@{Level},16}>17}*(1-0) + 0]], [[d4]], [[d6]], [[d8]], [[d10]] ]] {{rname=Haemocraft Die}} {{r1= $[[1]] $[[2]] $[[3]] $[[4]] $[[5]] $[[6]] $[[7]] [[({{$[[7]], 0} > 1} * ({(({{$[[7]],1}>2}*{({{$[[7]],2}>3}*({$[[6]]-$[[5]])}+$[[5]])}-$[[4]]) + $[[4]])}-$[[3]]) + $[[3]])]]}} {{normal=1}}
I can post an explanation of what each part means if necessary. Thanks!