
I'm trying to create a rolltemplate that needs to evaluate a roll result twice. Once for success (is it below a particular target number) and once to determine if it's a critical (the raw roll is evenly divisible by 5). I know how to do each individually but I need to do both against the roll result and not sure I can do it.
In the roll button I generate:
{{rolltarget=[[@{INITIATIVE_ML} - @{PHYSICAL_PENALTY}]]}}
{{rollresult=[[1d100]]}}
So checking for success in the template is simple enough but to check for a crit I'd have to make sure rollresult%5 was 0 which means I'd have to be able to either access the that value again in the value generating the rolltemplate (I don't think I can do that) or calculate it in the rolltemplate (also don't think I can do).
Am I missing something or is there a work around I'm not considering?
Thanks for any feedback.
In the roll button I generate:
{{rolltarget=[[@{INITIATIVE_ML} - @{PHYSICAL_PENALTY}]]}}
{{rollresult=[[1d100]]}}
So checking for success in the template is simple enough but to check for a crit I'd have to make sure rollresult%5 was 0 which means I'd have to be able to either access the that value again in the value generating the rolltemplate (I don't think I can do that) or calculate it in the rolltemplate (also don't think I can do).
Am I missing something or is there a work around I'm not considering?
Thanks for any feedback.