Ok. I need help with a calculation. I have a bloodhunter subclass feature that has options. {{scalevalue}} unfortunately does not work with options nor does it display the die size unless you input the dice count in the level scaling and you cannot do calculations based on a {{scalevalue}} string. SO I need to find an alternate way either using {{classlevel}} or {{proficiency}} to create this result (as an example):
<strong>3d</strong>(scaling hemocraft die size).
Proficiency bonus increases at levels 5, 9, 13, and 17. Hemocraft die goes up a die size from a d4 at levels 5, 11, and 17. I have not been able to figure out a calculation to make it work. Can anyone help?
Is the string you're wanting missing something? Hemocraft die size increases at the levels like you say, but I'm not seeing where proficiency bonus comes into play.
The code to display <strong>3d</strong>(scaling hemocraft die size) would be:
I've found level switches to be extremely useful. Level switches is what I call the sections:
(classlevel/#)@max:1,rounddown
or
(classlevel/#)@rounddown // Only if # > 10
Basically if your classlevel is less than the # you're wanting to do something, it'll round down to 0 making simple addition or subtraction so much easier because you're either adding or subtracting 0 or 1. Because of the limited PEDMAS implementation in the snippet system (theorized about here), simple arithmetic is all we can do. a+b-c+d sort of things, level switches can be used to figure out what b, c, and d should be.
To keep things from breaking, you should always include the max:1 in your level switch unless you know for a fact the classlevel you're checking is more than 10.
To visualize the snippet I made for SirDoctorKok, try this reduction:
So If I was to put this into some kind of formula I'd use:
starting value +|- level switch * difference from previous value [ +|- level switch * difference from previous value [ +|- level switch * difference from previous value ... ] ]
You can get very creative with how you're calculating things. I explored Halfwing's solution to a complicated snippet here where they used addition and subtraction to accomplish a very difficult level switch exploration.
Keep in mind that Halfwing's solution adds an extra calculation to the first level switch that makes it a bit more complicated but simplifies things overall.
Hello. I was wondering if there's a snippet that'll compare of a stat in play which ever is calculated higher. For example, comparing STR to DEX for a damage modifier on a species' main trait. I hope that was a viable description.
I'm having some issues: I wanted to make a snippet that shows me the Spell Save DC of a Paladin for his subclass, i tried with {{8+spellattack}}, {{spellattack+8}}, {{spellattack#unsigned}} and so on but every time on the sheet it appears like that.
spellattack - Spell attack missing ability key
I tried putting the :cha and :charisma after the spellattack but it didn't changed anything, am I doing something wrong?
It works, until the Paladin attunes to the Amulet of the Devout then the DC becomes wrong, because the calculation given is 8+CHA+PB, without the bonus.
There is no possible way to create a snippet that would take that magic item into account. Even if you used {{(spellattack:cha)+8}}, it would still calculate out as Cha + PB + 8 on the sheet. If you want it to take that amulet into account, you would need to use {{(savedc:cha)+1}}, but then it would be incorrect if they ever drop the attunement on that amulet. Your best bet would be to use something like the following:
{{savedc:cha}} ({{(savedc:cha)+1}} while attuned to the Amulet of the Devout)
I hoped that the spellattack snippet automatically calculated all the bonuses given by attuned magical items. +1 for the uncommon one, +2 for the rare and +3 for the very rare ones.
I hoped that the spellattack snippet automatically calculated all the bonuses given by attuned magical items. +1 for the uncommon one, +2 for the rare and +3 for the very rare ones.
Is there a possibility to show the bonus of a skill someone has?
For example if I wanted to display the actual bonus to arcana. Normally i would safy {{profiency+modifier:int}} But does that take in something like expertise?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is the string you're wanting missing something? Hemocraft die size increases at the levels like you say, but I'm not seeing where proficiency bonus comes into play.
The code to display <strong>3d</strong>(scaling hemocraft die size) would be:
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 would be able to help you here.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
I've found level switches to be extremely useful. Level switches is what I call the sections:
or
Basically if your classlevel is less than the # you're wanting to do something, it'll round down to 0 making simple addition or subtraction so much easier because you're either adding or subtracting 0 or 1. Because of the limited PEDMAS implementation in the snippet system (theorized about here), simple arithmetic is all we can do. a+b-c+d sort of things, level switches can be used to figure out what b, c, and d should be.
To keep things from breaking, you should always include the max:1 in your level switch unless you know for a fact the classlevel you're checking is more than 10.
To visualize the snippet I made for SirDoctorKok, try this reduction:
I put emphasis on level switches. (not literal HTML nomenclature for emphasis)
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 If I was to put this into some kind of formula I'd use:
You can get very creative with how you're calculating things. I explored Halfwing's solution to a complicated snippet here where they used addition and subtraction to accomplish a very difficult level switch exploration.
Keep in mind that Halfwing's solution adds an extra calculation to the first level switch that makes it a bit more complicated but simplifies things overall.
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)
Brilliant. I honestly never would have been able to figure that out all by myself. Your explanation is invaluable.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Thank you for explaining how that works. I would have been at it for hours making it way too complicated.
Hello. I was wondering if there's a snippet that'll compare of a stat in play which ever is calculated higher. For example, comparing STR to DEX for a damage modifier on a species' main trait. I hope that was a viable description.
{{modifier:str,dex}}
That👆snippet won’t actually affect the rollable though.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Oh ok. Thank you. But what would affect the rollable though, if you don't mind me asking?
You would have to create 2 Actions, 1 for Str and 1 for Dex and the player would have to use the correct one.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Oh ok. Makes more sense now. Thank you so much
I'm having some issues: I wanted to make a snippet that shows me the Spell Save DC of a Paladin for his subclass, i tried with {{8+spellattack}}, {{spellattack+8}}, {{spellattack#unsigned}} and so on but every time on the sheet it appears like that.
spellattack - Spell attack missing ability key
I tried putting the :cha and :charisma after the spellattack but it didn't changed anything, am I doing something wrong?
Try {{savedc:cha}}
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
It works, until the Paladin attunes to the Amulet of the Devout then the DC becomes wrong, because the calculation given is 8+CHA+PB, without the bonus.
There is no possible way to create a snippet that would take that magic item into account. Even if you used {{(spellattack:cha)+8}}, it would still calculate out as Cha + PB + 8 on the sheet. If you want it to take that amulet into account, you would need to use {{(savedc:cha)+1}}, but then it would be incorrect if they ever drop the attunement on that amulet. Your best bet would be to use something like the following:
That👆will cover all your bases.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
I hoped that the spellattack snippet automatically calculated all the bonuses given by attuned magical items. +1 for the uncommon one, +2 for the rare and +3 for the very rare ones.
It does not.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
If you were trying to make a snippet that let you roll for a d10 as many times as your proficiency bonus, how would you write that?
Either one of these depending on exactly what you want:
Keep in mind that neither of those will actually create a rollable for you. For that you would need to create an Action.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
A short question.
Is there a possibility to show the bonus of a skill someone has?
For example if I wanted to display the actual bonus to arcana. Normally i would safy {{profiency+modifier:int}} But does that take in something like expertise?