I cannot get this to work, I must be facing a limit to Query syntax I am not aware of... I'm trying to create a query for Cure spells for a cleric that has many Healing specializations, so the calculation is a little heavy... Here's the basic code I use: &{template:DnD35StdRoll} {{spellflag=true}} {{name=@{character_name}
}} {{subtags=Casts ?{Spell| Cure Light Wounds, **Cure Light Wounds**.
Target regains [[1d8+5]] HP. | Cure Moderate Wounds, **Cure Moderate Wounds**. Target regains [[2d8+8]] HP. | Cure Serious Wounds, **Cure Serious Wounds**. Target regains [[3d8+8]] HP. | Cure Critical Wounds, **Cure Critical Wounds**. Target regains [[4d8+10]] HP. }}} This works fine, but I'm trying to replace the [[xd8+y]] with what I actually need to use: &{template:DnD35StdRoll} {{spellflag=true}} {{name=@{character_name}
}} {{subtags=Casts ?{Spell| Cure Light Wounds, **Cure Light Wounds**.
Target regains [[floor(1d8 * 1.5) + [[{@{divinecasterlevel}+1,5*1}kl1]][Level] + 2*1[AugmentHealing] + @{cha-mod}[Prestige] )]] HP. | Cure Moderate Wounds, **Cure Moderate Wounds**. Target regains [[2d8+8]] HP. | Cure Serious Wounds, **Cure Serious Wounds**. Target regains [[3d8+8]] HP. | Cure Critical Wounds, **Cure Critical Wounds**. Target regains [[4d8+10]] HP. }}} I just adjusted the Cure Light Wounds part to show what I need to do. If I remove the kl1 part (i.e. + [[{@{divinecasterlevel}+1,5*?{Level?}}kl1]][Level] ), it works. I tried modifying the syntax, or event did tests with very simple kl1 functions, but as long as the kl1 group is present, the query fails. Is that a limitation or is there another way to write this? Thanks!