I've been trying to make sense of what it says on the Wiki... and it's just confusing me. Or maybe I'm trying to use it in the wrong fashion. Basically, the homebrew system I am designing a sheet for will automatically double the damage of an attack on a crit. What I was thinking was something like this: (@{primary-ttldmg}) * (1 + @{primary-crit}) How would I program this? The code used to do the template is as follows: &{template:default}{{name= Attack!}}{{character= @{character_name}}}{{Weapon= @{primary-name}}}{{Attack= [[1d20cs>@{primary-crit}cf<@{primary-fail}+@{primary-atk}]]}}{{Damage= [[@{primary-ttldmg}]]}} Please ignore the fact that the attributes are undefined in this segment of code. That isn't important.