I'm so confused on this. I don't really understand coding language at all and no matter what I read it isn't really helping me understand. Can anyone help?
I have a creature that uses a custom melee weapon called "Cestus and Bracus" and it deals 1d10 + 5 and has a + 8 to hit. What exactly do I need to put to make this rollable? Because it sees like no matter how perfectly I copy to the formula from this post or the homebrew guide it doesn't come out correctly. How exactly do I put this in to make it work correctly?
Rollback Post to RevisionRollBack
There's nothing wrong or boring about being a Human Fighter with a Sword and Shield. It's all about HOW you play them, WHO they are, and WHAT they do!
I'm so confused on this. I don't really understand coding language at all and no matter what I read it isn't really helping me understand. Can anyone help?
I have a creature that uses a custom melee weapon called "Cestus and Bracus" and it deals 1d10 + 5 and has a + 8 to hit. What exactly do I need to put to make this rollable? Because it sees like no matter how perfectly I copy to the formula from this post or the homebrew guide it doesn't come out correctly. How exactly do I put this in to make it work correctly?
Assuming it’s a melee weapon, you would use this without the underscores:
Cestus and Bracus. Melee Weapon Attack: [_rollable]+8;{"diceNotation":"1d20+8","rollType":"to hit","rollAction":"Cestus and Bracus"}[/rollable_] to hit, reach 5 ft., one target. Hit: 10 [_rollable](1d10 + 5);{"diceNotation":"1d10+5","rollType":"damage","rollAction":"Cestus and Bracus","rollDamageType":"piercing"}[/rollable_] piercing damage.
I took a guess and put in Piercing as the damage type, but you can change that if you need to.
I'm so confused on this. I don't really understand coding language at all and no matter what I read it isn't really helping me understand. Can anyone help?
I have a creature that uses a custom melee weapon called "Cestus and Bracus" and it deals 1d10 + 5 and has a + 8 to hit. What exactly do I need to put to make this rollable? Because it sees like no matter how perfectly I copy to the formula from this post or the homebrew guide it doesn't come out correctly. How exactly do I put this in to make it work correctly?
Assuming it’s a melee weapon, you would use this without the underscores:
Cestus and Bracus. Melee Weapon Attack: [_rollable]+8;{"diceNotation":"1d20+8","rollType":"to hit","rollAction":"Cestus and Bracus"}[/rollable_] to hit, reach 5 ft., one target. Hit: 10 [_rollable](1d10 + 5);{"diceNotation":"1d10+5","rollType":"damage","rollAction":"Cestus and Bracus","rollDamageType":"piercing"}[/rollable_] piercing damage.
I took a guess and put in Piercing as the damage type, but you can change that if you need to.
I''ll give it a try. Thank you, I'm still very new to this and I absolutely have 0 understanding of coding languages or even how to correctly use them and copying it before and just changing numbers didn't work. But I probably messed something up while typing it out. I really want to get the hang of this to make my custom creatures more viable to others.
Rollback Post to RevisionRollBack
There's nothing wrong or boring about being a Human Fighter with a Sword and Shield. It's all about HOW you play them, WHO they are, and WHAT they do!
Yeah, you have to be careful and use the correct kinds of quotation marks and everything. I find it easier to code rollables in the html view. If you look at the top of the field you can see a bunch of little grey buttons. If you click this one it’ll let you see the html for the field and there it will automatically use the correct quotations and everything:
I apologize if I missed this being covered previously, but I'm wondering if it's possible to add a tool tag that looks for a homebrew spell in a monster stat block or a homebrew monster. At the moment when I'm trying it, I get an error [Tooltip Not Found] in the stat block.
If it's not currently possible, will this be a feature to come later?
I apologize if I missed this being covered previously, but I'm wondering if it's possible to add a tool tag that looks for a homebrew spell in a monster stat block or a homebrew monster. At the moment when I'm trying it, I get an error [Tooltip Not Found] in the stat block.
If it's not currently possible, will this be a feature to come later?
None of this works in the year 2023. And I mean NONE of it. I've wasted many hours trying to reliably homebrew attack actions on my custom monsters to no avail. I've read though every post in this forum. Nothing works. It's broken. I don't suspect it will ever be fixed and this saddens me. Oh well, I guess I'll just do everything old school.
Nothing’s broken, it works all the time. The two most common issues are that either you’re missing a quotation mark or brace somewhere, or you’re using the wrong kind of quotation mark. You’ve gotta use the straight kind ", not the curved kind “.
None of this works in the year 2023. And I mean NONE of it. I've wasted many hours trying to reliably homebrew attack actions on my custom monsters to no avail. I've read though every post in this forum. Nothing works. It's broken. I don't suspect it will ever be fixed and this saddens me. Oh well, I guess I'll just do everything old school.
As IamSposta said, it's all working just fine, maybe you can share your [rollable] tag text here and we can help you find any issues with your text?
Hey all, I note that even though this was first raised quite a while back, the button to add rollable blocks still doesn't work the way people expect, and I was finding generating the blocks by hand quite laborious. I'm working on a script that will generate the text, and I'll probably throw a quick web page around it - is that of interest? I have it working on the command line just now like so:
Should be able to turn into an actual web page this evening sometime. This script validates the dice notation and ensures the roll type and roll damage type are valid choices as well.
Hey all, I note that even though this was first raised quite a while back, the button to add rollable blocks still doesn't work the way people expect, and I was finding generating the blocks by hand quite laborious. I'm working on a script that will generate the text, and I'll probably throw a quick web page around it - is that of interest? I have it working on the command line just now like so:
Should be able to turn into an actual web page this evening sometime. This script validates the dice notation and ensures the roll type and roll damage type are valid choices as well.
Button? You hear is no button for adding rollables, at least not available from DDB. Are you running an extension or something that adds the button?
The tooltip "Add rollable dice blocks automatically" on the last button in the post/text editor implies that it will allow people to... add rollable dice blocks. I haven't figured out what it actually does, but several people near the beginning of this thread seem to have assumed (and myself when I started making monsters) it was meant to be a way to help generate the [rollable] blocks without loads of fiddly typing. If there's some other tool to make that job easier, I'd love to know what it is because I haven't found it!
The tooltip "Add rollable dice blocks automatically" on the last button in the post/text editor implies that it will allow people to... add rollable dice blocks. I haven't figured out what it actually does, but several people near the beginning of this thread seem to have assumed (and myself when I started making monsters) it was meant to be a way to help generate the [rollable] blocks without loads of fiddly typing. If there's some other tool to make that job easier, I'd love to know what it is because I haven't found it!
Holy Crap!! You’re absolutely right, there is a button!! Thanks for pointing that out as I had missed it before.
I've now updated it to display friendly errors if an invalid input is given
I gave it a creative commons license so anyone (including D&D Beyond) is welcome to reuse the code if it is helpful. Code is here: https://github.com/scherma/rollable
Further updated to handle subtractions, and kh(n)/kl(n) for advantage/disadvantage.
Goodness, thank you for this, I otherwise would've given up for trying to code this. This coding concept, or at least the instructions for it should be written for the average player, not the average coder.
yes, this was most helpful!
I'm so confused on this. I don't really understand coding language at all and no matter what I read it isn't really helping me understand. Can anyone help?
I have a creature that uses a custom melee weapon called "Cestus and Bracus" and it deals 1d10 + 5 and has a + 8 to hit. What exactly do I need to put to make this rollable? Because it sees like no matter how perfectly I copy to the formula from this post or the homebrew guide it doesn't come out correctly. How exactly do I put this in to make it work correctly?
There's nothing wrong or boring about being a Human Fighter with a Sword and Shield. It's all about HOW you play them, WHO they are, and WHAT they do!
Lycanthropy is the spice of night.
Assuming it’s a melee weapon, you would use this without the underscores:
I took a guess and put in Piercing as the damage type, but you can change that if you need to.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
I''ll give it a try. Thank you, I'm still very new to this and I absolutely have 0 understanding of coding languages or even how to correctly use them and copying it before and just changing numbers didn't work. But I probably messed something up while typing it out. I really want to get the hang of this to make my custom creatures more viable to others.
There's nothing wrong or boring about being a Human Fighter with a Sword and Shield. It's all about HOW you play them, WHO they are, and WHAT they do!
Lycanthropy is the spice of night.
Yeah, you have to be careful and use the correct kinds of quotation marks and everything. I find it easier to code rollables in the html view. If you look at the top of the field you can see a bunch of little grey buttons. If you click this one it’ll let you see the html for the field and there it will automatically use the correct quotations and everything:
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Can we have this kind of feature, not just for monsters?
I apologize if I missed this being covered previously, but I'm wondering if it's possible to add a tool tag that looks for a homebrew spell in a monster stat block or a homebrew monster. At the moment when I'm trying it, I get an error [Tooltip Not Found] in the stat block.
If it's not currently possible, will this be a feature to come later?
Please see the General Homebrew FAQ #9: (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
Thank you!
None of this works in the year 2023. And I mean NONE of it. I've wasted many hours trying to reliably homebrew attack actions on my custom monsters to no avail. I've read though every post in this forum. Nothing works. It's broken. I don't suspect it will ever be fixed and this saddens me. Oh well, I guess I'll just do everything old school.
Nothing’s broken, it works all the time. The two most common issues are that either you’re missing a quotation mark or brace somewhere, or you’re using the wrong kind of quotation mark. You’ve gotta use the straight kind ", not the curved kind “.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
As IamSposta said, it's all working just fine, maybe you can share your [rollable] tag text here and we can help you find any issues with your text?
Any chance this should be working for magic items? Here's the tag I am trying...
[_rollable]1d4-1;{"diceNotation":"1d4-1","rollType":"roll","rollAction":"Recharge"}[/_rollable]
Underscores have been added so it would not be parsed by the forums.
Rollables only work on Monster statblocks, nowhere else.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Hey all, I note that even though this was first raised quite a while back, the button to add rollable blocks still doesn't work the way people expect, and I was finding generating the blocks by hand quite laborious. I'm working on a script that will generate the text, and I'll probably throw a quick web page around it - is that of interest? I have it working on the command line just now like so:
Should be able to turn into an actual web page this evening sometime. This script validates the dice notation and ensures the roll type and roll damage type are valid choices as well.
Rollable Dice Block Generator - Source Code
Button? You hear is no button for adding rollables, at least not available from DDB. Are you running an extension or something that adds the button?
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
The tooltip "Add rollable dice blocks automatically" on the last button in the post/text editor implies that it will allow people to... add rollable dice blocks. I haven't figured out what it actually does, but several people near the beginning of this thread seem to have assumed (and myself when I started making monsters) it was meant to be a way to help generate the [rollable] blocks without loads of fiddly typing. If there's some other tool to make that job easier, I'd love to know what it is because I haven't found it!
Rollable Dice Block Generator - Source Code
Holy Crap!! You’re absolutely right, there is a button!! Thanks for pointing that out as I had missed it before.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting
Ok, I have a very rudimentary page up here for folks to try out: https://scherma.github.io/rollable/
I've now updated it to display friendly errors if an invalid input is given
I gave it a creative commons license so anyone (including D&D Beyond) is welcome to reuse the code if it is helpful. Code is here: https://github.com/scherma/rollable
Further updated to handle subtractions, and kh(n)/kl(n) for advantage/disadvantage.
Rollable Dice Block Generator - Source Code
Goodness, thank you for this, I otherwise would've given up for trying to code this. This coding concept, or at least the instructions for it should be written for the average player, not the average coder.
Tools for easy reference
Rollable JOSN Generator for Rollable Tags (Credit to: MidniteOil21)
The Optimists' Guide to D&D 5E Damage by Class DPR (Credit to: MakingLemonade)