Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

DND 5e Sheet not displaying Damage/type correctly

I created a spell in the DND 5e template for Breath Weapon, calculated the dice for each level to be  [[(1 + (round(((@{level} - 1) / 5)+0.5)))]]d6  put that in, added type as Fire, and instead of displaying 2d6 Fire in the Damage/Type column, I see the formula. Activating the spell casts properly, but the formula is an eyesore. Am I missing something to get it to display correctly?
If you are talking about what it says in the character sheet, yes it displays the formula.  It calculates the dice roll and appropriate damage when casting the spell.  Spells that scale damage off of the spell slot used work the same way where you see the formula in the character sheet attack section under damage, but is calculated when cast.
Matt M. said: If you are talking about what it says in the character sheet, yes it displays the formula.  It calculates the dice roll and appropriate damage when casting the spell.  Spells that scale damage off of the spell slot used work the same way where you see the formula in the character sheet attack section under damage, but is calculated when cast. Firebolt uses a similar formula but correctly displays 2d10 Fire not the formula.
1597519610

Edited 1597522780
Firebolt uses a similar formula but correctly displays 2d10 Fire not the formula. You mean here on the sheet in the Attack section?  My Firebolt shows the formula. If you are talking about on the Spells tab in the description, you can put whatever you want here.  The spell description text is not linked to the Attack Damage field.  See Firebolt spell description vs damage field. Where are you seeing the formula that you want to see 2d10 instead?  
Here.
1597539377
Oosh
Sheet Author
API Scripter
"2d10" is a formula, just a very simple one. That damage field gets the brackets added around the whole thing automatically when it outputs to the template, so the "2d10" is actually {{dmg1=[[2d10]]}}. The damage type listed after it is the same: it's {{dmg1type=Fire}} with all the template characters taken out. This is working 100% as intended, it would be pointless to resolve the roll in the field where you're trying to add a formula. Firebolt damage would just display a single integer between 2 and 20 that changed every time you opened the sheet, for example - completely unhelpful if you're trying to check that the formula is correct.
Oosh said: "2d10" is a formula, just a very simple one. That damage field gets the brackets added around the whole thing automatically when it outputs to the template, so the "2d10" is actually {{dmg1=[[2d10]]}}. The damage type listed after it is the same: it's {{dmg1type=Fire}} with all the template characters taken out. This is working 100% as intended, it would be pointless to resolve the roll in the field where you're trying to add a formula. Firebolt damage would just display a single integer between 2 and 20 that changed every time you opened the sheet, for example - completely unhelpful if you're trying to check that the formula is correct. It literally cannot be working as intended, because firebolt does use a formula, resolves in the template and changes based on the level of the character using it, that's the whole point of the formula. I know the formula is correct and I'm not trying to check it, I never asked about that. The place where I'm reading it, I want to see the shortened version so I can choose what move to make in the game, which I can't because it hasn't resolved and I can't read anything
1597570887

Edited 1597576787
Oosh
Sheet Author
API Scripter
Firebolt uses Cantrip progression which is set on the Spells tab. Presumably a sheetworker then throws the correct simplified formula into the Attacks & Spellcasting section, though I don't write sheets so I'm not 100% on that bit. It might just be a CSS change. It only seems to recognise that particular formula as something that can be displayed in a simplified form - even changing an integer will change the display to the full thing. You can either use one of the Cantrip options in the spells tab (dice or beam), or if they're not suitable (I don't think they are for Dragon's breath), you can do what you've done and put the actual formula in there. If you absolutely must have a simplified formula in there, you will have to actually type a simplified formula in there. You will need to just put the damage in as 2d6 and update it manually when you reach the next progression. Unless you want to pay for a Pro membership, you could use a script to do that for you, or write a custom sheet that has a sheetworker option for Dragon's Breath - that would be an awful lot of work, though. There might be a way to hack something together by knowing how the Cantrip Progression formula is getting special treatment.
Why on earth would it be pre-baked simplified formulae for every cantrip and every level when they could just display [[finished calculation of number]][[dice]][[damage type]]?
1597577193

Edited 1597577780
Oosh
Sheet Author
API Scripter
Possibly to make it obvious when something has been changed? I don't think there are that many unusual damage progression formulae... almost everything is covered by higher level cast, cantrip progression, or just plain old stat increase. Or maybe it used to work the way you want it to and it broke? I'm not sure. So the field where you enter the damage formula is @{bob|repeating_attack_$0_dmgbase} The "2d10 fire" bit displayed on the grey button is @{bob|repeating_attack_$0_atkdmgtype} with "bob" and "$0" replaced with whatever is appropriate for your sheet. Interestingly, if you call the atkdmgtype Attribute in chat, it displays just the way you want it to. Something fishy is happening between dmgbase and atkdmgtype, but it's not something I can see in the html inspector. And that's about all I know. One of the sheet boffins probably knows exactly what's going on. If I had to take a stab in the dark, I'd say there's a reason they didn't want that button label to be a calculating field, and the tidy-looking progression formula is hard-coded so at least anything dragged from the Compendium looks pretty.