I had done some digging around, looking for a way to do some kind of IF statement. I want to do the following:
if(1d20)>@{target|AC} then **Damage**: [[3d6]]
I came across this, in a article claiming it was a workaround for an if-statement in a roll20 macro.
[[ 1d12 + 5[STR] + ( ?{Two-Handed Weapon?|0}[TwoHanded?] * floor( 5[STR] * .5) ) ]]
Can someone explain that bit of macro for me? I am an experienced coder, but don't have mentor-status, thus I am limited to macros, rather than using an API.
if(1d20)>@{target|AC} then **Damage**: [[3d6]]
I came across this, in a article claiming it was a workaround for an if-statement in a roll20 macro.
[[ 1d12 + 5[STR] + ( ?{Two-Handed Weapon?|0}[TwoHanded?] * floor( 5[STR] * .5) ) ]]
Can someone explain that bit of macro for me? I am an experienced coder, but don't have mentor-status, thus I am limited to macros, rather than using an API.