Yeah it seems to work! And Rounddown needs always to be before unsigned, right? ...if I understand correctly, in my third example I messed up just with the order and it's trying to rounddown the unsigned
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.
Just found this thread, didn't know these existed. Anyways, I wanted to do the same level-based cantrip thing, so I made it happen. Here's my booming blade example:
Booming: + {{((characterlevel+1)/6)@rounddown}}d8 Thunder On Move : + {{1+((characterlevel+1)/6)@rounddown}}d8 Thunder
Hey all. Trying to get something to display as "1 + (class level/3 - rounded up)" at a max of 6, unsigned.
I've tried a couple of ways but keep getting pinged back with a sheet display error of "Unknown value: roundup@max" or "Unknown value: roundup)@max" so I assume I'm putting something in the wrong order?
What I've tried:
{{(1+(classlevel/3)@roundup@max:6)#unsigned}}
{{((1+(classlevel/3)@roundup)@max:6)#unsigned}}
I'm trying to get the whole equation to be at max: 6 while only the class level part is rounded up, for context.
Sorry to jump in on this so late but i'm trying to make an item that allows the use of Alter Self on a wand but i was trying to set the proficiency bonus as the number of uses per day. Adding {{proficiency}} to the spell just tells me that it's not a valid number. Basically, i just need it to give me the check boxes to mark off uses based on the proficiency bonus. Is there a way to do this properly?
Do i add {{proficiency}} to the spell? To the modifier?
You cannot add snippets to magic items because they have no snippet field. Magic items are not designed to pull info like that from their bearer as a metric. Short answer: What you want to do is not currently possible and unless WotC publishes something like that likely never will be.
Probably didn't read it but I'm trying to figure out how to add a spell list to the snippet section. I'm trying to recreate the Runechild Sorcerer from Tal'dori Campaign Setting Reborn, with the twist of allowing the actual change of the spell, like in the description. Does anyone know how to do that or add the table to the description itself?
You cannot add snippets to magic items because they have no snippet field. Magic items are not designed to pull info like that from their bearer as a metric. Short answer: What you want to do is not currently possible and unless WotC publishes something like that likely never will be.
That is a shame but good to know. I will just add it to the description. Thank you for getting back to me on that so quickly!
When creating a monster , why can't I just select a weapon form a drop down and have it fill in the snippet? Yeah, I can manually do it, but it's stupid we have to. I've been a developer for many decades, and the last thing I want to do around my D&D game is write code. I don't want my hobby to become like work.
I have a campaign, and all the bandits have different weapons. I don't want to have to create a code snippet for each bandit. No one should have to learn this type of thing if they don't want to. That is a simplified example, the reasons are actual more detailed and campaign specific.
I'd be embarrassed to release code that made the users write code to do something I know they are going to have to do.
Snippets are not present in monster stat blocks. I believe this is a concern regarding rollable expressions, if I'm not mistaken?
In any case, including that as an automatic feature to add to monster stat blocks would be a massive undertaking, as it would require defining monster weapon proficiencies and handling any number of odd cases.
I'm having trouble with my snippet coding. I have a table in my description and I want the snippet to show the spells in the table. I've seen a few homebrews that have it, but no luck with getting an answer. Essentially, I'm trying to get the snipper to look like this:
Runic Magic
Beginning at 1st level, you learn additional spells when you reach certain levels in this class, as shown on the Runic Spells table. Each of these spells counts as a sorcerer spell for you, but it doesn’t count against the number of sorcerer spells you know.
When you gain a level in this class, you can replace one spell you gained from this feature with another spell of the same level. The new spell must be an abjuration or transmutation spell from the sorcerer, warlock, or wizard spell list.
Feather Fall(1st)
Protection from Evil and Good(1st)
Lesser Restoration(2nd)
Protection from Poison(2nd)
Counterspell(3rd)
Haste(3rd)
Death Ward(4th)
Freedom of Movement(4th)
Greater Restoration(5th)
Telekinesis(5th)
Where these spells appear at the correlating levels. How do I make that happen? I know it's possible since there are other classes that have that same kind of set up, and this was copied from another's homebrew snippet on a character sheet. Thanks for the help in advance.
I'm having trouble with my snippet coding. I have a table in my description and I want the snippet to show the spells in the table. I've seen a few homebrews that have it, but no luck with getting an answer. Essentially, I'm trying to get the snipper to look like this:
Runic Magic
Beginning at 1st level, you learn additional spells when you reach certain levels in this class, as shown on the Runic Spells table. Each of these spells counts as a sorcerer spell for you, but it doesn’t count against the number of sorcerer spells you know.
When you gain a level in this class, you can replace one spell you gained from this feature with another spell of the same level. The new spell must be an abjuration or transmutation spell from the sorcerer, warlock, or wizard spell list.
Feather Fall(1st)
Protection from Evil and Good(1st)
Lesser Restoration(2nd)
Protection from Poison(2nd)
Counterspell(3rd)
Haste(3rd)
Death Ward(4th)
Freedom of Movement(4th)
Greater Restoration(5th)
Telekinesis(5th)
Where these spells appear at the correlating levels. How do I make that happen? I know it's possible since there are other classes that have that same kind of set up, and this was copied from another's homebrew snippet on a character sheet. Thanks for the help in advance.
This would not use snippet codes. What you're probably seeing is a list of spells selected or options selected. Make a copy of one of the subclasses that you're referring to and that should give you insight on how to make what you're making. I'm at work now so I can't put together a bunch of screenshots to show you what I'm talking about.
Those aren’t being done with the snippet, when the PC gains access to those spells they then populate the character sheet below the snippet under Features & Traits automatically.
Yeah it seems to work! And Rounddown needs always to be before unsigned, right? ...if I understand correctly, in my third example I messed up just with the order and it's trying to rounddown the unsigned
Yes, signed and unsigned modifiers always come last.
Just found this thread, didn't know these existed. Anyways, I wanted to do the same level-based cantrip thing, so I made it happen. Here's my booming blade example:
Booming: + {{((characterlevel+1)/6)@rounddown}}d8 Thunder
On Move : + {{1+((characterlevel+1)/6)@rounddown}}d8 Thunder
Based on this, I assume there isn't one for hit point dice?
Hey all. Trying to get something to display as "1 + (class level/3 - rounded up)" at a max of 6, unsigned.
I've tried a couple of ways but keep getting pinged back with a sheet display error of "Unknown value: roundup@max" or "Unknown value: roundup)@max" so I assume I'm putting something in the wrong order?
What I've tried:
I'm trying to get the whole equation to be at max: 6 while only the class level part is rounded up, for context.
Ryan (he/him/his)
Extended Signature
Try this:
It should automatically be unsigned.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Use this:
The snippets don't like whitespace in tags.
Helpful rewriter of Japanese->English translation and delver into software codebases (she/e/they)
I was only leaving the space so they could clearly see and count the parentheses.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
@naruhoodie: That worked, thanks so much!
And you as well, @IamSposta!
Ryan (he/him/his)
Extended Signature
Sorry to jump in on this so late but i'm trying to make an item that allows the use of Alter Self on a wand but i was trying to set the proficiency bonus as the number of uses per day. Adding {{proficiency}} to the spell just tells me that it's not a valid number. Basically, i just need it to give me the check boxes to mark off uses based on the proficiency bonus. Is there a way to do this properly?
Do i add {{proficiency}} to the spell? To the modifier?
You cannot add snippets to magic items because they have no snippet field. Magic items are not designed to pull info like that from their bearer as a metric. Short answer: What you want to do is not currently possible and unless WotC publishes something like that likely never will be.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Probably didn't read it but I'm trying to figure out how to add a spell list to the snippet section. I'm trying to recreate the Runechild Sorcerer from Tal'dori Campaign Setting Reborn, with the twist of allowing the actual change of the spell, like in the description. Does anyone know how to do that or add the table to the description itself?
Anything you enter into the snippet field is set and cannot be changed by a player, only by the homebrew’s creator.
See General FAQ #12 for how to add the table to the description: (https://www.dndbeyond.com/forums/dungeons-dragons-discussion/homebrew-house-rules/131411-a-homebrewers-how-to-faq).
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
That is a shame but good to know. I will just add it to the description. Thank you for getting back to me on that so quickly!
When creating a monster , why can't I just select a weapon form a drop down and have it fill in the snippet?
Yeah, I can manually do it, but it's stupid we have to.
I've been a developer for many decades, and the last thing I want to do around my D&D game is write code.
I don't want my hobby to become like work.
I have a campaign, and all the bandits have different weapons. I don't want to have to create a code snippet for each bandit. No one should have to learn this type of thing if they don't want to. That is a simplified example, the reasons are actual more detailed and campaign specific.
I'd be embarrassed to release code that made the users write code to do something I know they are going to have to do.
Snippets are not present in monster stat blocks. I believe this is a concern regarding rollable expressions, if I'm not mistaken?
In any case, including that as an automatic feature to add to monster stat blocks would be a massive undertaking, as it would require defining monster weapon proficiencies and handling any number of odd cases.
I'm having trouble with my snippet coding. I have a table in my description and I want the snippet to show the spells in the table. I've seen a few homebrews that have it, but no luck with getting an answer. Essentially, I'm trying to get the snipper to look like this:
Beginning at 1st level, you learn additional spells when you reach certain levels in this class, as shown on the Runic Spells table. Each of these spells counts as a sorcerer spell for you, but it doesn’t count against the number of sorcerer spells you know.
When you gain a level in this class, you can replace one spell you gained from this feature with another spell of the same level. The new spell must be an abjuration or transmutation spell from the sorcerer, warlock, or wizard spell list.
This would not use snippet codes. What you're probably seeing is a list of spells selected or options selected. Make a copy of one of the subclasses that you're referring to and that should give you insight on how to make what you're making. I'm at work now so I can't put together a bunch of screenshots to show you what I'm talking about.
How to: Replace DEX in AC | Jump & Suffocation stats | Spell & class effect buff system | Wild Shape effect system | Tool Proficiencies as Custom Skills | Spells at higher levels explained | Superior Fighting/Martial Adept Fix | Snippet Codes Explored - Subclasses | Snippet Math Theory | Homebrew Weapons Explained
My: FEATS | MAGIC ITEMS | MONSTERS | SUBCLASSES Artificer Specialist: Weaveblade
Dndbeyond images not loading WORKAROUND FIXED!!! (TY Jay_Lane for original instructions)
Those aren’t being done with the snippet, when the PC gains access to those spells they then populate the character sheet below the snippet under Features & Traits automatically.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
It should just be {{(classlevel/2)@rounddown,min:1}}
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting