classlevel/2@rounddown#unsigned - Value modifier cannot be used at current location: @rounddown
this is what happens if i use this snippet formula
so i erase the @rounddown- and testing with 17th level character... the value comes out as 8.5
why can't i use @rounddown in that formula? 8.5 needs to be 8.
In the SNIPPET TUTORIAL I see an example of @rounddown
@rounddown - causes a calculation to round down to a whole number. Example: {{(classlevel/3)@rounddown}} - a third of the character level, rounded down
The example snippet works correctly for me; there is a difference between the example and yours though, which is that yours doesn't have brackets around classlevel/2
If you change your snippet to {{(classlevel/2)@rounddown#unsigned}} then it should work.
Former D&D Beyond Customer of six years: With the axing of piecemeal purchasing, lack of meaningful development, and toxic moderation the site isn't worth paying for anymore. I remain a free user only until my groups are done migrating from DDB, and if necessary D&D, after which I'm done. There are better systems owned by better companies out there.
I have unsubscribed from all topics and will not reply to messages. My homebrew is now 100% unsupported.
Please note that the @rounddown function applies to the part of the formula that is immediately to the left of it.
The snippet you stated:
{{classlevel/2@rounddown#unsigned}}
In this case, the @rounddown is being applied to the 2. The code knows that this is likely a mistake, which is why the error is generated.
The example given:
{{(classlevel/3)@rounddown}}
Note that the (classlevel/3) is surrounded in brackets before @rounddown is applied, so the calculation is carried out and then the @rounddown is applied.
This follows standard arithmetic operator precedence.
Please note that the @rounddown function applies to the part of the formula that is immediately to the left of it.
The snippet you stated:
{{classlevel/2@rounddown#unsigned}}
In this case, the @rounddown is being applied to the 2. The code knows that this is likely a mistake, which is why the error is generated.
The example given:
{{(classlevel/3)@rounddown}}
Note that the (classlevel/3) is surrounded in brackets before @rounddown is applied, so the calculation is carried out and then the @rounddown is applied.
This follows standard arithmetic operator precedence.
The example snippet works correctly for me; there is a difference between the example and yours though, which is that yours doesn't have brackets around classlevel/2
If you change your snippet to {{(classlevel/2)@rounddown#unsigned}} then it should work.
thanks to you too
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
classlevel/2@rounddown#unsigned - Value modifier cannot be used at current location: @rounddown
this is what happens if i use this snippet formula
so i erase the @rounddown- and testing with 17th level character... the value comes out as 8.5
why can't i use @rounddown in that formula? 8.5 needs to be 8.
In the SNIPPET TUTORIAL I see an example of @rounddown
Example: {{(classlevel/3)@rounddown}} - a third of the character level, rounded down
the example-try it out. DOES NOT WORK
The example snippet works correctly for me; there is a difference between the example and yours though, which is that yours doesn't have brackets around classlevel/2
If you change your snippet to {{(classlevel/2)@rounddown#unsigned}} then it should work.
Former D&D Beyond Customer of six years: With the axing of piecemeal purchasing, lack of meaningful development, and toxic moderation the site isn't worth paying for anymore. I remain a free user only until my groups are done migrating from DDB, and if necessary D&D, after which I'm done. There are better systems owned by better companies out there.
I have unsubscribed from all topics and will not reply to messages. My homebrew is now 100% unsupported.
Hiya!
I just tested and the example works.
Please note that the @rounddown function applies to the part of the formula that is immediately to the left of it.
The snippet you stated:
{{classlevel/2@rounddown#unsigned}}
In this case, the @rounddown is being applied to the 2. The code knows that this is likely a mistake, which is why the error is generated.
The example given:
{{(classlevel/3)@rounddown}}
Note that the (classlevel/3) is surrounded in brackets before @rounddown is applied, so the calculation is carried out and then the @rounddown is applied.
This follows standard arithmetic operator precedence.
Hope that helps!
Pun-loving nerd | Faith Elisabeth Lilley | She/Her/Hers | Profile art by Becca Golins
If you need help with homebrew, please post on the homebrew forums, where multiple staff and moderators can read your post and help you!
"We got this, no problem! I'll take the twenty on the left - you guys handle the one on the right!"🔊
thank you for the fast reply! it works now
thanks to you too