So, I am working on a character sheet where an attack is categorized as either a melee attack, a ranged attack or a threaten attack. I would like to have a stat Attack_Type that could be defined as “M”, “R” or “T”, and then have the action take that stat and apply the appropriate bonuses. However, when I try to do a test like “|Bonus| !({Attack_Type==“T” ? Threaten_Bonus : Attack_Type==“R”? Range_Bonus : Melee_Bonus}d{CD}) |” I get an error of “Error: Cannot convert “R” to a number”. So, either I’m doing something wrong, or characters can’t be used in testing syntax.
(I have a working version of the sheet which uses 1, 2, 3 for values of the Attack_Type stat with a text block next to the stat that says “1=Melee, 2=Ranged, 3=Threaten”. Clumsy, but it works, in the absence of a real solution.)