So I made the majority of a homebrew subclass a while ago, and left the higher level features for later when I had better ideas. Well I finally went back to add in those features recently, and afterwards was looking over everything to make sure it looked good (spelling errors, functionality in the character sheet, etc). Well I found a previous issue I had forgotten about with one of the features, and still can't figure out how to fix it tbh. I don't understand a lot of the homebrew creation coding stuff, and figured a lot of it out on my own over time by comparing copies of official classes or races.
So the actual issue is with something that scales with the level, and has two different level scaling aspects that have different values.
This is how I entered it into the editor.
So in the actual character sheet the scalevalue does work, but I don't know how to differentiate the two values honestly. So it just shows up in the character sheet like this. It just decided on the scalevalue for the damage bonus, but for both of them.
Does anyone know how to fix this? Much appreciated either way though!
You cannot differentiate between different scale values. The solution is to use {{scalevalue}} for the more complicated one and use a calculation for the simpler one. If you look you will find an entire sub forum dedicated specifically to people posting about their homebrews: (https://www.dndbeyond.com/forums/dungeons-dragons-discussion/homebrew-house-rules). Had you posted this there would have helped you sooner, but only just noticed it. Anyway, in that sub forum you will find a pinned thread specifically all about something called “snippets.” That’s what you’re using there, snippets. Post in there and someone better with snippets than I am will help you.
So I made the majority of a homebrew subclass a while ago, and left the higher level features for later when I had better ideas. Well I finally went back to add in those features recently, and afterwards was looking over everything to make sure it looked good (spelling errors, functionality in the character sheet, etc). Well I found a previous issue I had forgotten about with one of the features, and still can't figure out how to fix it tbh. I don't understand a lot of the homebrew creation coding stuff, and figured a lot of it out on my own over time by comparing copies of official classes or races.
So the actual issue is with something that scales with the level, and has two different level scaling aspects that have different values.
This is how I entered it into the editor.
So in the actual character sheet the scalevalue does work, but I don't know how to differentiate the two values honestly. So it just shows up in the character sheet like this. It just decided on the scalevalue for the damage bonus, but for both of them.
Does anyone know how to fix this? Much appreciated either way though!
Rereading this and I think I know the workaround. First you have to remove one set of level scaling, either the additional damage or the temporary hit points. It doesn't really matter which one you remove, either the first set or the second.
If you remove the first set, replace the second instance of {{scalevalue}} by replacing the 3rd line of your snippet with:
- One of your attacks on each of your turns can be granted advantage, and deals an extra <strong>1d</strong>{{8+(classlevel/10)@rounddown*2+(classlevel/18)@rounddown*2)}} of Force damage on a hit."
If you remove the second set, replace the first instance of {{scalevalue}} by replacing the 2nd line of your snippet with:
- You gain <strong>2d</strong>{{6+(classlevel/10)@rounddown*2+(classlevel/18)@rounddown*2}} temporary hit points, which last for the duration or until they are gone.
Either method should get you the result you need. You could replace both instances of {{scalevalue}} this way if you can think of something more creative to do with it.
Thank you both so very much, and admittedly I didn't think/search too hard for the correct sub for this. I'm so glad I got it fixed though, coding is not my strong suit-
Edit to add: If you care to peep my homebrew subclass, here ya' go! It's the first Subclass I've made, and is based off of the Rune Knight. Made the subclass for a player in my campaign bc they wanted a Rune Knight but weren't sure about the other features they get besides the runes, and to see how it would fit in my world. I might have made it a bit strong bc of how much the Rune Knight felt lacking to me (and stronger players means more fun combat), but I'm finally happy with it!
So I made the majority of a homebrew subclass a while ago, and left the higher level features for later when I had better ideas. Well I finally went back to add in those features recently, and afterwards was looking over everything to make sure it looked good (spelling errors, functionality in the character sheet, etc). Well I found a previous issue I had forgotten about with one of the features, and still can't figure out how to fix it tbh. I don't understand a lot of the homebrew creation coding stuff, and figured a lot of it out on my own over time by comparing copies of official classes or races.
So the actual issue is with something that scales with the level, and has two different level scaling aspects that have different values.


This is how I entered it into the editor.

So in the actual character sheet the scalevalue does work, but I don't know how to differentiate the two values honestly. So it just shows up in the character sheet like this. It just decided on the scalevalue for the damage bonus, but for both of them.

Does anyone know how to fix this? Much appreciated either way though!
You cannot differentiate between different scale values. The solution is to use {{scalevalue}} for the more complicated one and use a calculation for the simpler one. If you look you will find an entire sub forum dedicated specifically to people posting about their homebrews: (https://www.dndbeyond.com/forums/dungeons-dragons-discussion/homebrew-house-rules). Had you posted this there would have helped you sooner, but only just noticed it. Anyway, in that sub forum you will find a pinned thread specifically all about something called “snippets.” That’s what you’re using there, snippets. Post in there and someone better with snippets than I am will help you.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
What IamSposta said. Plus...
Remove the DICE field from LEVEL SCALING so it only has the DESCRIPTION. In your snippet, replace the first instance of {{scalevalue}} with:
{{1+(classlevel/...
WAIT! You have 2 entries for level 3, 2 entries for level 10, and 2 entries for level 18??? Well there's your problem.
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)
Rereading this and I think I know the workaround. First you have to remove one set of level scaling, either the additional damage or the temporary hit points. It doesn't really matter which one you remove, either the first set or the second.
If you remove the first set, replace the second instance of {{scalevalue}} by replacing the 3rd line of your snippet with:
If you remove the second set, replace the first instance of {{scalevalue}} by replacing the 2nd line of your snippet with:
Either method should get you the result you need. You could replace both instances of {{scalevalue}} this way if you can think of something more creative to do with it.
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 both so very much, and admittedly I didn't think/search too hard for the correct sub for this. I'm so glad I got it fixed though, coding is not my strong suit-
Edit to add: If you care to peep my homebrew subclass, here ya' go! It's the first Subclass I've made, and is based off of the Rune Knight. Made the subclass for a player in my campaign bc they wanted a Rune Knight but weren't sure about the other features they get besides the runes, and to see how it would fit in my world. I might have made it a bit strong bc of how much the Rune Knight felt lacking to me (and stronger players means more fun combat), but I'm finally happy with it!