I made a homebrew and I'm trying to write up some macros for the players to use in the Abilities section of the Character sheets. The problem I'm having is with negative modifiers. For example: Bob has a STR modifier of -1. When Bob rolls STR checks sometimes the macro that is used displays a negative number (-1). Here's what the macro looks like:
&{template:default} {{name= Strength}} {{Check/ST= [[1d20 +@{STR Modifier} ]] | [[1d20 +@{STR Modifier} ]]}} What I want to do is make sure that the macro only displays a 0 (zero) instead of negative numbers if the result happens to be a negative number. I've tried using floor() but I can't tell if it's just nullifying the modifier since it is a negative number in the first place. Here's what I've tried. &{template:default} {{name= STR}} {{Check/ST= [[1d20 +(@{STR Modifier} (floor (0))) ]] | [[1d20 +(@{STR Modifier} (floor (0))) ]]}} Any help would be appreciated. Thank you.