When creating a subclass ability, I want it to use my spellcasting DC. However, the only code I can find is one that looks at your proficiency bonus and spellcasting modifier, then calculates what that should be without any bonuses. However, if I have an item that increases my spell to-hit chance and DC, such as Bloodwell Vial or Amulet of the Devout, it does not change the value given. Is there a code I can use that takes into account such magic items, or do we just have to adjust for it manually when we are playing the game?
There is no snippet that pulls a spellcaster's spell DC. You can build a snippet that calculates it {{8+proficiency+modifier:XXX#unsigned}} but this will not take into account magic items that add or subtract from the spell DC, such as the Arcane Grimoire, and {{savedc:XXX}} is a simpler calculation anyways.
Now do magic items automatically effect {{spellattack:XXX}}? That could be something that could be looked into by someone not at work right now.
When creating a subclass ability, I want it to use my spellcasting DC. However, the only code I can find is one that looks at your proficiency bonus and spellcasting modifier, then calculates what that should be without any bonuses. However, if I have an item that increases my spell to-hit chance and DC, such as Bloodwell Vial or Amulet of the Devout, it does not change the value given. Is there a code I can use that takes into account such magic items, or do we just have to adjust for it manually when we are playing the game?
There is no snippet that pulls a spellcaster's spell DC. You can build a snippet that calculates it {{8+proficiency+modifier:XXX#unsigned}} but this will not take into account magic items that add or subtract from the spell DC, such as the Arcane Grimoire, and {{savedc:XXX}} is a simpler calculation anyways.
Now do magic items automatically effect {{spellattack:XXX}}? That could be something that could be looked into by someone not at work right now.
Is there a Snippet for the Melee version of {{spellattack}} ?
Not as such, but you could always just use {{spellattack}} and designate it as either Str or Dex (or whichever’s higher) like this: {{spellattack:str,dex}}. That should work.
I'm trying to get a 3rd level artificer subclass feature to scale from 1d8 when you get it, then to 2d8 at 5th level, 3d8 at 9th, and 4d8 at 15th. I'm a bit stumped on how to get it to scale correctly
I'm trying to get a 3rd level artificer subclass feature to scale from 1d8 when you get it, then to 2d8 at 5th level, 3d8 at 9th, and 4d8 at 15th. I'm a bit stumped on how to get it to scale correctly
You don’t need a snippet to do this. Snippets don’t actually “do” anything, they just display calculated information on the character sheets. To actually get the rollable to scale you need to re-edit the Action after you save it to tell the system to increase the die pool at the appropriate levels. Now, if you really do want the snippet to change too, that’s totally doable. There’s two ways you could do it. You could use the “Level Scaling” subsection of the subclass feature form to input those dice counts at the appropriate levels and use the {{scalevalue}} snippet, or you could do it with something called “level switches,” you can learn about those here: (https://www.dndbeyond.com/forums/dungeons-dragons-discussion/homebrew-house-rules/158191-snippet-math-theory). If it were me I would consider using the level switches if I wanted to use the {{scalevalue}} for something else, or if the subclass feature in question has Options attached to it since {{scalevalue}} doesn’t work on Options. But if neither of those complications is present then I would just use {{scalevalue}} since it’s so much simpler.
You can totally make it work, it’ll just take some coding. I’m not the best with level switches, I can often make them work, but it takes a lot of time and effort for me. No offense, but I don’t feel like spending the next couple hours figuring that out for you. Whereas I know someone else is likely to come along in the next few days or so and just drop the code for you like it’s nothing (comparatively speaking).
I doubt that’ll be quite right, but it should be close. Someone better than me with snippets should be able to point out where and how and fix it for you. Just be patient.
I'm trying to get a 3rd level artificer subclass feature to scale from 1d8 when you get it, then to 2d8 at 5th level, 3d8 at 9th, and 4d8 at 15th. I'm a bit stumped on how to get it to scale correctly
If you're bored enough, read through the thread Snippet math theory. Basically you follow PEDMAS for order of operations, but I've found the snippet modifiers can't go in parentheses.
I doubt that’ll be quite right, but it should be close. Someone better than me with snippets should be able to point out where and how and fix it for you. Just be patient.
Easiest way to visualize it is make a table for each level and have a row for each level. You can see where the changes need to be made. Since the DemiurgeSupreme said they wanted 1 @ 3, 2 @ 5, 3 @ 9, and 4 @ 15, there's not really a greatest common factor to reduce to for simple math. If it had been levels 3, 6, 9, and 15, dividing by 3 would have worked but then you'd have to subtract 1 at level 12 and max it at 4 for level 15. Using a level switch at each level is the simplest method I see.
Breaking down {{1+(classlevel/5)@max:1,rounddown+(classlevel/9)@max:1,rounddown+(classlevel/15)@rounddown}} from my previous comment:
A = (classlevel/5)@max:1,rounddown
B = (classlevel/9)@max:1,rounddown
C = (classlevel/15)@rounddown
snippet exploded: (turn your phone sideways, this is a wide table)
In reference to the hypothetical I posed in the previous comment, "If it had been levels 3, 6, 9, and 15, dividing by 3 would have worked but then you'd have to subtract 1 at level 12 and max it at 4 for level 15." If these were the levels the number of dice changed it could be simplified by using the greatest common factor. 3, 6, 9 & 15 are all divisible by 3, making it the greatest common factor. We can use that to reduce before applying modifiers. We'll need to account for 12 and 18 though too:
This reduces classlevel 1-2 to 0, 3-5 to 1, 6-8 to 2, 9-14 to 3, and 15 and up to 4. Since this is built off an example of an artificer subclass, levels 1-2 don't matter though this will return 0 if used on a subclass that is active before level 3. Up until level 12 we're subtracting 0 from the first part. With 12/3 = 4, we need to subtract 1 to keep things right. Then at 15, we get 15/3 for 5, but we're still subtracting the 1 at 12 to give us the 4 we want. At 18, we get 18/3 for 6, but we maxed it out at 5 and we're still subtracting the 1 at 12 to keep us at the 4 we want. With the @rounddown modifier, we only ever have to account for levels that are divisible by 3 and 12.
For convenience sake make it an attunement item
What does this have to do with snippet codes?
If you're referring to Drewmeister11's earlier comment:
There is no snippet that pulls a spellcaster's spell DC. You can build a snippet that calculates it {{8+proficiency+modifier:XXX#unsigned}} but this will not take into account magic items that add or subtract from the spell DC, such as the Arcane Grimoire, and {{savedc:XXX}} is a simpler calculation anyways.
Now do magic items automatically effect {{spellattack:XXX}}? That could be something that could be looked into by someone not at work right now.
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)
No, they do not.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Is there a Snippet for the Melee version of {{spellattack}} ?
Not as such, but you could always just use {{spellattack}} and designate it as either Str or Dex (or whichever’s higher) like this: {{spellattack:str,dex}}. That should work.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
I am making a Feat that boosts Unarmed Attacks based on that players main attack modifier. Since Unarmed Attacks as STR for most but DEX for others
Then the snippet I suggested should do you just fine because it will give a result of whichever is higher, an attack based on Str or one based on Dex.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
I'm trying to get a 3rd level artificer subclass feature to scale from 1d8 when you get it, then to 2d8 at 5th level, 3d8 at 9th, and 4d8 at 15th. I'm a bit stumped on how to get it to scale correctly
You don’t need a snippet to do this. Snippets don’t actually “do” anything, they just display calculated information on the character sheets. To actually get the rollable to scale you need to re-edit the Action after you save it to tell the system to increase the die pool at the appropriate levels. Now, if you really do want the snippet to change too, that’s totally doable. There’s two ways you could do it. You could use the “Level Scaling” subsection of the subclass feature form to input those dice counts at the appropriate levels and use the {{scalevalue}} snippet, or you could do it with something called “level switches,” you can learn about those here: (https://www.dndbeyond.com/forums/dungeons-dragons-discussion/homebrew-house-rules/158191-snippet-math-theory). If it were me I would consider using the level switches if I wanted to use the {{scalevalue}} for something else, or if the subclass feature in question has Options attached to it since {{scalevalue}} doesn’t work on Options. But if neither of those complications is present then I would just use {{scalevalue}} since it’s so much simpler.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Yeah, it's for options. I guess it isn't a big deal that the text won't be aligned with the mechanics. Thanks for the help.
You can totally make it work, it’ll just take some coding. I’m not the best with level switches, I can often make them work, but it takes a lot of time and effort for me. No offense, but I don’t feel like spending the next couple hours figuring that out for you. Whereas I know someone else is likely to come along in the next few days or so and just drop the code for you like it’s nothing (comparatively speaking).
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
I can tell you it’ll be something along the lines of the following:
{{((classlevel/4)@roundup,max:3)+(classlevel/15)@roundup)}}<strong>d8</strong>
I doubt that’ll be quite right, but it should be close. Someone better than me with snippets should be able to point out where and how and fix it for you. Just be patient.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Try {{1+(classlevel/5)@max:1,rounddown+(classlevel/9)@max:1,rounddown+(classlevel/15)@rounddown}}<strong>d8</strong>
If you're bored enough, read through the thread Snippet math theory. Basically you follow PEDMAS for order of operations, but I've found the snippet modifiers can't go in parentheses.
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)
See I toldja someone smarter than me with snippets would be able to help you out.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Easiest way to visualize it is make a table for each level and have a row for each level. You can see where the changes need to be made. Since the DemiurgeSupreme said they wanted 1 @ 3, 2 @ 5, 3 @ 9, and 4 @ 15, there's not really a greatest common factor to reduce to for simple math. If it had been levels 3, 6, 9, and 15, dividing by 3 would have worked but then you'd have to subtract 1 at level 12 and max it at 4 for level 15. Using a level switch at each level is the simplest method I see.
Breaking down {{1+(classlevel/5)@max:1,rounddown+(classlevel/9)@max:1,rounddown+(classlevel/15)@rounddown}} from my previous comment:
A = (classlevel/5)@max:1,rounddown
B = (classlevel/9)@max:1,rounddown
C = (classlevel/15)@rounddown
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)
THANK YOU SO MUCH!!! BOTH OF YOU!!!!
No problem at all.
In reference to the hypothetical I posed in the previous comment, "If it had been levels 3, 6, 9, and 15, dividing by 3 would have worked but then you'd have to subtract 1 at level 12 and max it at 4 for level 15." If these were the levels the number of dice changed it could be simplified by using the greatest common factor. 3, 6, 9 & 15 are all divisible by 3, making it the greatest common factor. We can use that to reduce before applying modifiers. We'll need to account for 12 and 18 though too:
{{(classlevel/3)@max:5,rounddown-(classlevel/12)@rounddown}}
This reduces classlevel 1-2 to 0, 3-5 to 1, 6-8 to 2, 9-14 to 3, and 15 and up to 4. Since this is built off an example of an artificer subclass, levels 1-2 don't matter though this will return 0 if used on a subclass that is active before level 3. Up until level 12 we're subtracting 0 from the first part. With 12/3 = 4, we need to subtract 1 to keep things right. Then at 15, we get 15/3 for 5, but we're still subtracting the 1 at 12 to give us the 4 we want. At 18, we get 18/3 for 6, but we maxed it out at 5 and we're still subtracting the 1 at 12 to keep us at the 4 we want. With the @rounddown modifier, we only ever have to account for levels that are divisible by 3 and 12.
Basically,
{{(classlevel/3)@max:5,rounddown-(classlevel/12)@rounddown}}
is the same as
{{(classlevel/3)@max:1,rounddown+(classlevel/6)@max:1,rounddown+(classlevel/9)@max:1,rounddown+(classlevel/15)@rounddown}}
except we're using elementary school math to simplify things. Stay in school kids!
Just to add, I still say sticking to this notation will always work:
[ starting value + ] < classlevel / level something changes | characterlevel / level something changes (max 1, round down) [ * difference from previous value ] > [ + classlevel / level something changes | characterlevel / level something changes (max 1, round down) [ * difference from previous value ] [ + classlevel / level something changes | characterlevel / level something changes (max 1, round down) [ * difference from previous value ] [ ... ] ] ]
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)
I know this is an old post, but are there any new calculations or snippet codes?
Nothing new.
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)
Thank you