
So I have a macro where I don't want to have to update the number of dice it rolls as my character levels. I have the math figured out, it goes:
[[ ceil(@{Character|level}/2) ]]
This returns correctly. If I try to use it to determine the number of dice to roll:
[[ ceil(@{Character|level}/2) d6 +1 ]]
or
/r ceil(@{Character|level}/2) d6 +1
It fails. I'm using the syntax from the Dice Reference under Computed Dice Roll correctly as far as I can see, but it returns:
Could not determine result type of: [{"type":"M","expr":"ceil(4/2)"},{"type":"C","text":"d6 +1 "}]
Can anyone show me what I'm doing wrong? TIA.
[[ ceil(@{Character|level}/2) ]]
This returns correctly. If I try to use it to determine the number of dice to roll:
[[ ceil(@{Character|level}/2) d6 +1 ]]
or
/r ceil(@{Character|level}/2) d6 +1
It fails. I'm using the syntax from the Dice Reference under Computed Dice Roll correctly as far as I can see, but it returns:
Could not determine result type of: [{"type":"M","expr":"ceil(4/2)"},{"type":"C","text":"d6 +1 "}]
Can anyone show me what I'm doing wrong? TIA.