This is another placeholder thread, until such time as I am able to more fully detail this for you all.
This information is taken primarily from this changelog post on the Character sheet revamp.
What do snippet codes do?
Have you spotted on the character sheet that it tells you what each feature of your class/race does?
Those are snippets. When creating a homebrew race/class/feat you can add these snippets yourself, to indicate to anyone using them what they do.
Some of those features include calculations, based on a variety of things. It may be an armor class based on your DEX and CON, or it may be a saving throw DC.
They allow you to insert calculated numbers into the character sheet where the text for class/race features are shown.
You might have a feature in your homebrew class that allows the class to vertically jump their strength score in height. You would represent that in the snippet as:
{{abilityscore:str}}
What if you decided that at higher level, they could jump double their strength score in height? You can do that too, by adding in a multiplier so you would have
{{2*abilityscore:str}}
What snippet codes are available?
{{spellattack}} - your spell "to hit" {{scalevalue}} - a class-specific value, such as Rage Damage for a barbarian {{modifier:str}} - a modifier for an ability score (str, dex, con, int, wis, cha) {{modifier:str,dex}} - returns the higher value of the two ability score modifiers (str, dex, con, int, wis, cha) {{savedc:str}} - generates your Save DC using the specified ability modifier (str, dex, con, int, wis, cha) {{fixedvalue}} - the fixed number from the feature or trait {{classlevel}} - level in the contextual class {{characterlevel}} - total character level {{proficiency}} - your proficiency bonus {{maxhp}} - your maximum hit points {{limiteduse}} - total number of uses for the contextual feature or trait {{abilityscore:str}} - the actual ability score (change to the ability required from str, dex, con, int, wis, cha.
Calculations
You can perform fairly simple maths with a snippet. Examples include:
{{10+modifier:str}} - the character's strength bonus + 10.
{{maxhp/2}} - half the character's hitpoints.
{{2*abilityscore:con}} - double the characters Constitution score.
Additionally there are modifiers to calculations that can be used:
@rounddown - causes a calculation to round down to a whole number. Example: {{(classlevel/3)@rounddown}} - a third of the character level, rounded down
@roundup - causes a calculation to round up to a whole number. Example:{{(maxhp/2)@roundup}} - half the character max hitpoints, rounded up.
#signed - forces a calculation to show the appropriate plus or minus sign infront of it. Example: {{proficiency#signed}} - shows the proficiency amount with a plus sign infront of it.
#unsigned - forces a calculation to not show a plus or minus sign infront of it. Example: {{12+proficiency#unsigned}} - calculates 12 plus the proficiency, without placing a plus or minus infront of the result.
@min:x - ensures a calculation has a minimum value of x. Example: {{modifier:int@min:1}} - returns the intelligence ability modifier, with a minimum of 1.
@max:x - ensures a calculation has a maximum value of x. Example: {{modifier:dex@max:2}} - returns the dexterity ability modifier, with a maximum value of 2.
Important note for use of division: You'll probably want to round up or down. If you do choose to round you will append @rounddown or @roundup to the end of your equation. However you must also remember to put your equation into brackets for this to be effective.
For example, a 6th level moon Druid's wild shape CR is dependant on class level/3 rounded down. So your equation would be so: {{(classlevel/3)@rounddown}}
When creating homebrew, you'll see various fields named "snippet" - these are the fields that display data on the character sheet. These codes can be used in those fields.
Ah, just to be clear - the snippet code doesn't alter the stats of the character - it is a method of presenting calculated data on the character sheet for your homebrew feat.
When using the modifier snippet is there a way to prevent the + showing? I know there is a way, it was mentioned before by a user who found it out but after hours of searching forums I cannot find that post again and I wasn't using snippet codes then so didn't commit it to memory or save it or anything.
Basically if a homebrew subclass feature, for example, was to say give points equal to your Charisma modifier and I put in the Snippet box "You have {{modifier:cha}} points to use." It will come up as "You have +5 points to use."
When using the modifier snippet is there a way to prevent the + showing? I know there is a way, it was mentioned before by a user who found it out but after hours of searching forums I cannot find that post again and I wasn't using snippet codes then so didn't commit it to memory or save it or anything.
Basically if a homebrew subclass feature, for example, was to say give points equal to your Charisma modifier and I put in the Snippet box "You have {{modifier:cha}} points to use." It will come up as "You have +5 points to use."
How do I get rid of that +?
I'm wondering this, too. I just assumed there wasn't.
Doing it that way won't replace the "obsolete" ability on the character sheet though, right? In other words, in your example, at 8th level, it will show the 8th level boost and the (now obsolete) 2nd level boost?
Doing it that way won't replace the "obsolete" ability on the character sheet though, right? In other words, in your example, at 8th level, it will show the 8th level boost and the (now obsolete) 2nd level boost?
Correct. The snippet does not allow for you to make certain things visible/invisible based on any qualification, level or otherwise.
This is another placeholder thread, until such time as I am able to more fully detail this for you all.
This information is taken primarily from this changelog post on the Character sheet revamp.
What do snippet codes do?
Have you spotted on the character sheet that it tells you what each feature of your class/race does?
Those are snippets. When creating a homebrew race/class/feat you can add these snippets yourself, to indicate to anyone using them what they do.
Some of those features include calculations, based on a variety of things. It may be an armor class based on your DEX and CON, or it may be a saving throw DC.
They allow you to insert calculated numbers into the character sheet where the text for class/race features are shown.
You might have a feature in your homebrew class that allows the class to vertically jump their strength score in height. You would represent that in the snippet as:
What if you decided that at higher level, they could jump double their strength score in height? You can do that too, by adding in a multiplier so you would have
What snippet codes are available?
{{spellattack}} - your spell "to hit"
{{scalevalue}} - a class-specific value, such as Rage Damage for a barbarian
{{modifier:str}} - a modifier for an ability score (str, dex, con, int, wis, cha)
{{modifier:str,dex}} - returns the higher value of the two ability score modifiers (str, dex, con, int, wis, cha)
{{savedc:str}} - generates your Save DC using the specified ability modifier (str, dex, con, int, wis, cha)
{{fixedvalue}} - the fixed number from the feature or trait
{{classlevel}} - level in the contextual class
{{characterlevel}} - total character level
{{proficiency}} - your proficiency bonus
{{maxhp}} - your maximum hit points
{{limiteduse}} - total number of uses for the contextual feature or trait
{{abilityscore:str}} - the actual ability score (change to the ability required from str, dex, con, int, wis, cha.
Calculations
You can perform fairly simple maths with a snippet. Examples include:
Additionally there are modifiers to calculations that can be used:
Example: {{(classlevel/3)@rounddown}} - a third of the character level, rounded down
Example: {{(maxhp/2)@roundup}} - half the character max hitpoints, rounded up.
Example: {{proficiency#signed}} - shows the proficiency amount with a plus sign infront of it.
Example: {{12+proficiency#unsigned}} - calculates 12 plus the proficiency, without placing a plus or minus infront of the result.
Example: {{modifier:int@min:1}} - returns the intelligence ability modifier, with a minimum of 1.
Example: {{modifier:dex@max:2}} - returns the dexterity ability modifier, with a maximum value of 2.
Pun-loving nerd | 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 this post, I have bookmarked it for easy access.
What kind of calculations can be done to snippets, and how do we format them?
I've added some example above - I'll collate some more examples and add them later.
Pun-loving nerd | 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!"🔊
Important note for use of division: You'll probably want to round up or down. If you do choose to round you will append @rounddown or @roundup to the end of your equation. However you must also remember to put your equation into brackets for this to be effective.
For example, a 6th level moon Druid's wild shape CR is dependant on class level/3 rounded down. So your equation would be so: {{(classlevel/3)@rounddown}}
Thank you both!
Where do you put these in the homebrew feats.?
When creating homebrew, you'll see various fields named "snippet" - these are the fields that display data on the character sheet. These codes can be used in those fields.
Pun-loving nerd | 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!"🔊
Ok that's what I thought but when I try to put in any thing with {{maxhp}}, for example {{5+maxhp}}, nothing happens.
What do you see in the character sheet? Is there an error?
Pun-loving nerd | 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!"🔊
no errors, there is no change to the max hp up or down.
Ah, just to be clear - the snippet code doesn't alter the stats of the character - it is a method of presenting calculated data on the character sheet for your homebrew feat.
Pun-loving nerd | 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!"🔊
When using the modifier snippet is there a way to prevent the + showing? I know there is a way, it was mentioned before by a user who found it out but after hours of searching forums I cannot find that post again and I wasn't using snippet codes then so didn't commit it to memory or save it or anything.
Basically if a homebrew subclass feature, for example, was to say give points equal to your Charisma modifier and I put in the Snippet box "You have {{modifier:cha}} points to use." It will come up as "You have +5 points to use."
How do I get rid of that +?
My Homebrew: Races | Subclasses | Backgrounds | Spells | Magic Items | Feats
Need help with Homebrew? Check out this FAQ/Guide thread by IamSposta
See My Youtube Videos for Tips & Tricks using D&D Beyond
I'm wondering this, too. I just assumed there wasn't.
You can use #signed or #unsigned
I've updated the documentation in the first post with this information.
Pun-loving nerd | 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!"🔊
Is there a way to do level dependent dice rolls (similar to sneak attack damage)? For example, you do 1d6 damage at level one, 2d6 at level 5, etc.?
Not in the snippets, though this can be built into the core of the class. For the snippets the format I've seen used is:
Description of class feature as it is given at this level. [2nd] Higher level boost. [8th] Higher level boost.
Etc.
Doing it that way won't replace the "obsolete" ability on the character sheet though, right? In other words, in your example, at 8th level, it will show the 8th level boost and the (now obsolete) 2nd level boost?
Correct. The snippet does not allow for you to make certain things visible/invisible based on any qualification, level or otherwise.
If I wanted to display AC using this how would I go about adding a maximum of 2 to the snippet calculation? Is that possible?
AC of 15 + Dexterity (max +2)
Is it possible to do less than or equal to 2 and if so, how would one format that in this code? {{15+modifier:dex<=2}} ?
Can use these codes for items?
Like if an item had a DC based on the user's casting ability or did bonus damage based on their level?