is this still all corect and does it work on the 2024 versions?
Yes and yes.
Rollback Post to RevisionRollBack
Click ✨ HERE ✨ For My Youtube Videos featuring Guides, Tips & Tricks for using D&D Beyond. Need help with Homebrew? Check out ✨ thisFAQ/Guide thread ✨ by IamSposta.
I'm having trouble getting the snippet code to be 6d6 instead of 2d6. I know I messed up somewhere but I just don't see what I should alter. {{(class level/18)@rounddown*6+6}} this is what I put and I had just noticed it today.
{{(classlevel/18)@rounddown*6+6}} would display 6 if under level 18 and 12 if level 18 and up. What do you want it to display?
EDIT:
Here's a table breakdown of what each part of a level switch does. Example snippet: {{(classlevel/18)@rounddown*6+6}}. characterlevel and classlevel are interchangeable though classlevel is only available in homebrew subclasses.
So this is part of a subclass- Immediately after the arrow hits a creature, the target and all other creatures within 20 ft. of it take {{(classlevel/18)@rounddown*6+6}}<strong>d6</strong> force damage each. (snippet)
Immediately after the arrow hits the creature, the target and all other creatures within 20 feet of it take 6d6 force damage each.
The force damage increases to 8d6 when you reach 18th level in this class. (actual description) On the character sheet it shows up as 2d6.
So this is part of a subclass- Immediately after the arrow hits a creature, the target and all other creatures within 20 ft. of it take {{(classlevel/18)@rounddown*6+6}}<strong>d6</strong> force damage each. (snippet)
Immediately after the arrow hits the creature, the target and all other creatures within 20 feet of it take 6d6 force damage each.
The force damage increases to 8d6 when you reach 18th level in this class. (actual description) On the character sheet it shows up as 2d6.
Class Level divided by 18 and rounded down means 1st to 17th level it'll be 0 and at 18th, 19th and 20th levels it will be 1.
Then you multiply by 6, which will be 0 until 18th then 6.
Then you add 6, so it will be 6 until 18th then 12.
So the calculation would be either 6d6 or 12d6. So, not sure why you are saying 8d6.
But in any case try:
{{((classlevel/18)@rounddown*6)+6}}
Rollback Post to RevisionRollBack
Click ✨ HERE ✨ For My Youtube Videos featuring Guides, Tips & Tricks for using D&D Beyond. Need help with Homebrew? Check out ✨ thisFAQ/Guide thread ✨ by IamSposta.
So this is part of a subclass- Immediately after the arrow hits a creature, the target and all other creatures within 20 ft. of it take {{(classlevel/18)@rounddown*6+6}}<strong>d6</strong> force damage each. (snippet)
Immediately after the arrow hits the creature, the target and all other creatures within 20 feet of it take 6d6 force damage each.
The force damage increases to 8d6 when you reach 18th level in this class. (actual description) On the character sheet it shows up as 2d6.
Class Level divided by 18 and rounded down means 1st to 17th level it'll be 0 and at 18th, 19th and 20th levels it will be 1.
Then you multiply by 6, which will be 0 until 18th then 6.
Then you add 6, so it will be 6 until 18th then 12.
So the calculation would be either 6d6 or 12d6. So, not sure why you are saying 8d6.
But in any case try:
{{((classlevel/18)@rounddown*6)+6}}
I think they're getting their math wrong. Reading their most recent comment the snippet should be 6d6 from levels 1 through 17, then 8d6 for levels 18 and up. That would make the snippet code:
{{(classlevel/18)@rounddown*2+6}}
NaruAtor, that +6 at the end of the snippet, that is your starting value. For levels 1-17, everything in front of that is going to evaluate to 0, which you're going to add 6 to to get that initial starting calculation of 6.
The *2 in that snippet is the difference between your initial starting calculation and the new calculation now that classlevel is 18 or higher. You multiply the level switch by the difference between the lower level's calculation and the desired higher level's calculation. If you had said "level 1-17 is 6d6 and level 18 and up is 20d6", then that difference would be 14 and the snippet would have *14 in there.
The (classlevel/18)@rounddown is the level switch. This part of the snippet should most often¹ return a 0 or a 1. That way you're multiplying either a 0 or a 1 with your difference calculation (explained one paragraph above) and adding it to your starting calculation (explained 2 paragraphs above).
I'm hoping I can give a visual way to describe how all of this functions. Here's one that may be easier to visualize, though with the extra spaces, will throw an error but is mathematically identical to {{(classlevel/18)@rounddown*2+6}}. I'll put comments on each line so anyone familiar with some programming could possibly understand where I'm coming from for each line.
{{
6 // Starting value
+ // That we add to
(classlevel/18) // Gives us some number that probably has a decimal
@rounddown // That we simplify to 0 or 1
* // We multiply that 0 or 1 by
2 // The difference between what we start with and what you want to end with
}}
¹ "should most often" - If a repeating level switch has a common iteration (every other level; every 3rd level; levels 5, 10, 15, and 20; etc) more complex level switches that do not reduce to simply 0 and 1 can be used to simplify the snippets even more.
It is working as intended for level 18 which is the 8d6 which I thank everyonethat has replied. Still have to get it working for the 6d6 as it is still showing 2d6 maybe I missed something from earlier or didn't properly explain what I'm working on as I've been a little busy. The 6d6 stuff is for an option for a type of arrow for a subclass of ranger that they unlock at 15th level that increases to 8d6 once they reach level 18. Sorry if I didn't properly explain what it is that I'm trying to get help for.
It is working as intended for level 18 which is the 8d6 which I thank everyonethat has replied. Still have to get it working for the 6d6 as it is still showing 2d6 maybe I missed something from earlier or didn't properly explain what I'm working on as I've been a little busy. The 6d6 stuff is for an option for a type of arrow for a subclass of ranger that they unlock at 15th level that increases to 8d6 once they reach level 18. Sorry if I didn't properly explain what it is that I'm trying to get help for.
{{(classlevel/18)@rounddown*2+6}}. I haven't had time to see if I did something wrong when I went to change the snippet code or I didn't look over everything and the issue could just be me. My bad it was just me not going over everything afterwards. I found the issue and fixed it. Again thank you to everyone who replied.
Looking for advice, I'm trying to make a feat that has amount of uses based on level (level 1, 1 use box, level 2, 2 use box etc.) Kinda like how ki points work-
This thread is for Snippet Codes which cannot do anything mechanically like affect limited uses.
Limited uses for Spells cannot be based on level.
Limited Uses for Actions can be based on level by adding new instances of "limited use data" setting uses to level then "level" box to the desired level. Yes, this would mean adding adding it 20 times.
Rollback Post to RevisionRollBack
Click ✨ HERE ✨ For My Youtube Videos featuring Guides, Tips & Tricks for using D&D Beyond. Need help with Homebrew? Check out ✨ thisFAQ/Guide thread ✨ by IamSposta.
is this still all corect and does it work on the 2024 versions?
im dumb
Yes and yes.
Click ✨ HERE ✨ For My Youtube Videos featuring Guides, Tips & Tricks for using D&D Beyond.
Need help with Homebrew? Check out ✨ this FAQ/Guide thread ✨ by IamSposta.
I'm having trouble getting the snippet code to be 6d6 instead of 2d6. I know I messed up somewhere but I just don't see what I should alter. {{(class level/18)@rounddown*6+6}} this is what I put and I had just noticed it today.
{{(classlevel/18)@rounddown*6+6}} would display 6 if under level 18 and 12 if level 18 and up. What do you want it to display?
EDIT:
Here's a table breakdown of what each part of a level switch does. Example snippet: {{(classlevel/18)@rounddown*6+6}}. characterlevel and classlevel are interchangeable though classlevel is only available in homebrew subclasses.
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)
So this is part of a subclass- Immediately after the arrow hits a creature, the target and all other creatures within 20 ft. of it take {{(classlevel/18)@rounddown*6+6}}<strong>d6</strong> force damage each. (snippet)
Immediately after the arrow hits the creature, the target and all other creatures within 20 feet of it take 6d6 force damage each.
The force damage increases to 8d6 when you reach 18th level in this class. (actual description) On the character sheet it shows up as 2d6.
Class Level divided by 18 and rounded down means 1st to 17th level it'll be 0 and at 18th, 19th and 20th levels it will be 1.
Then you multiply by 6, which will be 0 until 18th then 6.
Then you add 6, so it will be 6 until 18th then 12.
So the calculation would be either 6d6 or 12d6. So, not sure why you are saying 8d6.
But in any case try:
{{((classlevel/18)@rounddown*6)+6}}
Click ✨ HERE ✨ For My Youtube Videos featuring Guides, Tips & Tricks for using D&D Beyond.
Need help with Homebrew? Check out ✨ this FAQ/Guide thread ✨ by IamSposta.
I think they're getting their math wrong. Reading their most recent comment the snippet should be 6d6 from levels 1 through 17, then 8d6 for levels 18 and up. That would make the snippet code:
NaruAtor, that +6 at the end of the snippet, that is your starting value. For levels 1-17, everything in front of that is going to evaluate to 0, which you're going to add 6 to to get that initial starting calculation of 6.
The *2 in that snippet is the difference between your initial starting calculation and the new calculation now that classlevel is 18 or higher. You multiply the level switch by the difference between the lower level's calculation and the desired higher level's calculation. If you had said "level 1-17 is 6d6 and level 18 and up is 20d6", then that difference would be 14 and the snippet would have *14 in there.
The (classlevel/18)@rounddown is the level switch. This part of the snippet should most often¹ return a 0 or a 1. That way you're multiplying either a 0 or a 1 with your difference calculation (explained one paragraph above) and adding it to your starting calculation (explained 2 paragraphs above).
I'm hoping I can give a visual way to describe how all of this functions. Here's one that may be easier to visualize, though with the extra spaces, will throw an error but is mathematically identical to {{(classlevel/18)@rounddown*2+6}}. I'll put comments on each line so anyone familiar with some programming could possibly understand where I'm coming from for each line.
¹ "should most often" - If a repeating level switch has a common iteration (every other level; every 3rd level; levels 5, 10, 15, and 20; etc) more complex level switches that do not reduce to simply 0 and 1 can be used to simplify the snippets even more.
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)
It is working as intended for level 18 which is the 8d6 which I thank everyonethat has replied. Still have to get it working for the 6d6 as it is still showing 2d6 maybe I missed something from earlier or didn't properly explain what I'm working on as I've been a little busy. The 6d6 stuff is for an option for a type of arrow for a subclass of ranger that they unlock at 15th level that increases to 8d6 once they reach level 18. Sorry if I didn't properly explain what it is that I'm trying to get help for.
What is the snippet code as you have it 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)
{{(classlevel/18)@rounddown*2+6}}. I haven't had time to see if I did something wrong when I went to change the snippet code or I didn't look over everything and the issue could just be me. My bad it was just me not going over everything afterwards. I found the issue and fixed it. Again thank you to everyone who replied.
This thread is for Snippet Codes which cannot do anything mechanically like affect limited uses.
Limited uses for Spells cannot be based on level.
Limited Uses for Actions can be based on level by adding new instances of "limited use data" setting uses to level then "level" box to the desired level. Yes, this would mean adding adding it 20 times.
Click ✨ HERE ✨ For My Youtube Videos featuring Guides, Tips & Tricks for using D&D Beyond.
Need help with Homebrew? Check out ✨ this FAQ/Guide thread ✨ by IamSposta.
Any chance we’ll get a code for a creature’s speeds? You know for things like “…move up to half your movement speed…”
My Brews:
Race: Tropical Dwaves Spells: Summon Spirits Rites of Mummification
Monster: Osprey Feat: Skill Mastery–Animal Handler (Provides DCs for training animals applicable to those with and without this feat)