Hi – I am trying to create a custom character sheet ability that rolls
a save against heat for a desert campaign. This check is a modified Fortitude
save that applies a -4 penalty if the character is wearing medium or heavy
armor, no penalty for light or no armor. I can use the armor check penalty (ACP) value from the character
sheet (this is Pathfinder first edition using the Pathfinder by Roll 20
character sheets) to determine what level of armor a character is wearing.
However, ACP values range from 0 (no armor) to some negative value. Light
armors ACP range from -1 to -3, while heavier armors ACPs are -4 or below. I tried to create this custom ability using the formula
below, but it does not seem to handle comparing negative values well at all (i.e.,
determining which of two negative values is “higher”, or closer to 0) and therefore
does not correctly apply the -4 check value when ACPs are negative. [[1d20+@{Fortitude} + {{-4,@{armor_check_penalty}}>0}*(0+4)
- 4 ]]
Maybe what I am trying to do can’t be done, I just wanted to
see if anyone had any suggestions to fix this text to make it work as expected.