Sorry if this is in the wrong spot, new to using the forums. Feel free to move it if need be of course.
While creating a custom subrace, I was editing some preexisting descriptions to match what I had in mind, and I noticed that in the description it was able to pull things directly from the character sheet, such as {{characterlevel}}. I did some searching and some googling to see if I could figure out how to grab other things like the charisma modifier, etc. but came back empty handed, though that might just be because I was looking in the wrong places.
The short descriptions on features, traits, and feats also include some simple code to auto-calculate a variety of numbers for ease of use. The syntax for this code is "{{inserthere}}" and can use math. The full list of available options are:
{{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) {{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
For example, the Fallen Aasimar's Necrotic Shroud racial trait has the following snippet:
[3rd] Once per long rest as an action, you can transform, causing all within 10 ft. to make a CHA saving throw (DC {{savedc:cha}}) or be frightened of you until the end of your next turn. This lasts for 1 minute or until you end it as a bonus action. Once on your turn you can have one attack or spell deal {{characterlevel}} points of extra necrotic damage to one target.
which for a 12 level character with a Charisma modifier of +2 displays as:
[3rd] Once per long rest as an action, you can transform, causing all within 10 ft. to make a CHA saving throw (DC 14) or be frightened of you until the end of your next turn. This lasts for 1 minute or until you end it as a bonus action. Once on your turn you can have one attack or spell deal 12 points of extra necrotic damage to one target.
You can use snippet code in your homebrew creations where snippets are available. More help/ guidelines will come in the future, but a great starting point would be to take a look at how existing snippets are formed to get to what you need.
{{abilityscore:wis}} - it gets the ability score value, instead of the modifier.
Does the saving throw coding automatically add proficiency bonus?
Hmm.
The saving throw code automatically adds proficiency to my homebrew.
{{savedc:wis}} for example creates the result of 8+WIS+Proficiency.
Well, that is a DC not a saving throw.
I interpreted the question as "Does the saving throw code add proficiency"-- The saving throw code that I would interpret is the {{savedc}} one, which does add proficiency. I made sure to include an example of how I was interpreting it, in case that wasn't Squigs' intent. I do not see anything else that would be a built-in "saving throw code", hence my interpretation.
{{abilityscore:wis}} - it gets the ability score value, instead of the modifier.
Does the saving throw coding automatically add proficiency bonus?
Hmm.
The saving throw code automatically adds proficiency to my homebrew.
{{savedc:wis}} for example creates the result of 8+WIS+Proficiency.
Well, that is a DC not a saving throw.
I interpreted the question as "Does the saving throw code add proficiency"-- The saving throw code that I would interpret is the {{savedc}} one, which does add proficiency. I made sure to include an example of how I was interpreting it, in case that wasn't Squigs' intent. I do not see anything else that would be a built-in "saving throw code", hence my interpretation.
Mellie is correct. I should've said save dc and not saving throw. But filcat's post does raise some good coding points, like the +proficiency. I assume you could do that for any code {{characterlevel+cha}} would be character level plus charisma modifier? Would that be correct? or {{characterlevel+modifier:cha}}?
I'm trying to create a save dc that is based on constitution but is lowered by your wisdom modifier. I assumed I could do this by {{savedc:con-wis}} but I got the error message below in the character sheet:
I'm trying to create a save dc that is based on constitution but is lowered by your wisdom modifier. I assumed I could do this by {{savedc:con-wis}} but I got the error message below in the character sheet:
I'm trying to create a save dc that is based on constitution but is lowered by your wisdom modifier. I assumed I could do this by {{savedc:con-wis}} but I got the error message below in the character sheet:
Any kind of help for this?
Try: {{savedc:con-modifier:wis}}
Thank you! This worked. It shows a plus sign in front of it, but in the link Stormknight provided, it explains how to get rid of that.
I'm making a monk subclass and some of the ability's use the Martial Arts Die as Damage but i cant get the Snippet Code for the die so that when the lvl increases it have the right die for the lvl i have tried different {{scalevalue}}?
I'm making a monk subclass and some of the ability's use the Martial Arts Die as Damage but i cant get the Snippet Code for the die so that when the lvl increases it have the right die for the lvl i have tried different {{scalevalue}}?
{{scalevalue:martialarts}}
{{scalevalue:unarmedstrikes}}
i dont think im getting the syntax right
You'll have to actually enter the Martial Arts die progression into the feature as level scaling, like so:
Then by just entering {{scalevalue}} you will get the appropriate damage die.
I'm making a monk subclass and some of the ability's use the Martial Arts Die as Damage but i cant get the Snippet Code for the die so that when the lvl increases it have the right die for the lvl i have tried different {{scalevalue}}?
{{scalevalue:martialarts}}
{{scalevalue:unarmedstrikes}}
i dont think im getting the syntax right
You'll have to actually enter the Martial Arts die progression into the feature as level scaling, like so:
Then by just entering {{scalevalue}} you will get the appropriate damage die.
Thank you this work better for other abilities i have made
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Sorry if this is in the wrong spot, new to using the forums. Feel free to move it if need be of course.
While creating a custom subrace, I was editing some preexisting descriptions to match what I had in mind, and I noticed that in the description it was able to pull things directly from the character sheet, such as {{characterlevel}}. I did some searching and some googling to see if I could figure out how to grab other things like the charisma modifier, etc. but came back empty handed, though that might just be because I was looking in the wrong places.
Any help would be appreciated
Thanks,
Swordlessfish
Quoting from the official announcement :
https://www.dndbeyond.com/changelog/256-character-sheet-revamp
Snippet Code
The short descriptions on features, traits, and feats also include some simple code to auto-calculate a variety of numbers for ease of use. The syntax for this code is "{{inserthere}}" and can use math. The full list of available options are:
For example, the Fallen Aasimar's Necrotic Shroud racial trait has the following snippet:
which for a 12 level character with a Charisma modifier of +2 displays as:
You can use snippet code in your homebrew creations where snippets are available. More help/ guidelines will come in the future, but a great starting point would be to take a look at how existing snippets are formed to get to what you need.
Many thanks! I've bookmarked the page so I don't forget it.
I greatly appreciate your help! Have a good rest of your day :)
Thanks, you too.
There is one more of those (it was added later):
{{abilityscore:wis}} - it gets the ability score value, instead of the modifier.
Does the saving throw coding automatically add proficiency bonus?
Published Subclasses
No, you have to add it.
{{modifier:str+proficiency}}
With it, you'd get STR modifier + Proficiency bonus.
Hmm.
The saving throw code automatically adds proficiency to my homebrew.
{{savedc:wis}} for example creates the result of 8+WIS+Proficiency.
Well, that is a DC not a saving throw.
I interpreted the question as "Does the saving throw code add proficiency"-- The saving throw code that I would interpret is the {{savedc}} one, which does add proficiency. I made sure to include an example of how I was interpreting it, in case that wasn't Squigs' intent. I do not see anything else that would be a built-in "saving throw code", hence my interpretation.
Mellie is correct. I should've said save dc and not saving throw. But filcat's post does raise some good coding points, like the +proficiency. I assume you could do that for any code {{characterlevel+cha}} would be character level plus charisma modifier? Would that be correct? or {{characterlevel+modifier:cha}}?
Published Subclasses
If you want to get the modifier, you should code like this: {{characterlevel+modifier:cha}}
I'm trying to create a save dc that is based on constitution but is lowered by your wisdom modifier. I assumed I could do this by {{savedc:con-wis}} but I got the error message below in the character sheet:
Any kind of help for this?
Published Subclasses
Try: {{savedc:con-modifier:wis}}
For reference, all the answers are already in this sticky post:
https://www.dndbeyond.com/forums/dungeons-dragons-discussion/homebrew-house-rules/25930-using-snippet-codes-in-your-homebrew
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! This worked. It shows a plus sign in front of it, but in the link Stormknight provided, it explains how to get rid of that.
I wasn't able to find what I was looking to do in that thread.
Published Subclasses
I'm making a monk subclass and some of the ability's use the Martial Arts Die as Damage but i cant get the Snippet Code for the die so that when the lvl increases it have the right die for the lvl i have tried different {{scalevalue}}?
{{scalevalue:martialarts}}
{{scalevalue:unarmedstrikes}}
i dont think im getting the syntax right
You'll have to actually enter the Martial Arts die progression into the feature as level scaling, like so:
Then by just entering {{scalevalue}} you will get the appropriate damage die.
Thank you this work better for other abilities i have made