I'd like to use a snippet code command to use both @rounddown and @min. Essentially the statement goes: "1 or 1/3 your level, whichever is higher". So basically the number shown should be a minimum of 1.
I tried these two snippets; neither work:
You can transform into a beast with a CR as high as {{(classlevel/3)@rounddown@min:1}}.
You can transform into a beast with a CR as high as {{{{(classlevel/3)@rounddown}}@min:1}}.
Any idea on how to get the desired calculation?
Public Mod Note
(GPyromania):
Moved from Bugs & Support to Homebrew & House Rules.
I had tried something similar before, but without the +0. The +0 seems to escape the modifier. For some reason a parenthesis doesn't escape it (it really should).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'd like to use a snippet code command to use both @rounddown and @min. Essentially the statement goes: "1 or 1/3 your level, whichever is higher". So basically the number shown should be a minimum of 1.
I tried these two snippets; neither work:
Any idea on how to get the desired calculation?
Try this (extra spaces for readability only).
{{ ( ( classlevel/3 ) @rounddown + 0 ) @min:1 }}
Works perfectly. Thank you!
I had tried something similar before, but without the +0. The +0 seems to escape the modifier. For some reason a parenthesis doesn't escape it (it really should).