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 .
×

[Help] Inline Roll not being processed

1460052941

Edited 1460055035
In my roll button for a spell, I assign the following roll to damage: Damage=[[@{SpellDamageB}+[[floor(@{SpellClass}*@{SpellDamageYDiceCount}/@{SpellDamageX})]]@{SpellDamageYDiceSize}+@{SpellDamageYBonus}*@{SpellClass}]] (The overall formula is just a slightly expanded slope-intercept formula, if that helps you understand my variable naming conventions) SpellDamageB is either an integer or a roll. SpellClass is the level of the class that supplied the spell. SpellDamageYDiceCount is the number of dice that are added with each increment. SpellDamageYDiceSize is the number of sides on the dice. SpellDamageX is the number of levels needed to increment in the Dice Count. SpellDamageYBonus is the integer value added with every increment. For example, with Magic Missile: SpellDamageB = 0 SpellClass = 8 SpellDamageYDiceCount = 1 SpellDamageYDiceSize = d4 SpellDamageX = 2 SpellDamageYBonus = 1 Unfortunately, instead of rolling the damage, what gets output to the roll template is "[[0+4d4+4]]".  If I wrap the entire thing in another layer of double brackets, the roll is resolved, but does not show the dice rolls.  I had it working earlier, and I'm trying to figure out why it stopped working as intended. (Yes, I know the formula isn't exact for Magic Missile, since it should be ceil instead of floor, but that's not part of the problem.) Any help troubleshooting will be appreciated.
1460059175

Edited 1466185579
Try padding the interiors of the outwardmost inline roll brackets with spaces (e.g.  Damage=[[foo]] → Damage=[[ foo ]]).
I've implemented the change. {{Damage=[[ @{SpellDamageB}+([[floor(@{SpellClass}*@{SpellDamageYDiceCount}/@{SpellDamageX})]]@{SpellDamageYDiceSize})+[[@{SpellDamageYBonus}*@{SpellClass}/@SpellDamageX}]] ]]}} which yielded  [[ 0+(6d4)+6 ]]
1460060819

Edited 1460061046
When you input just the inline roll into the text chat, does it return only partially parsed? Also, is that the only inline roll you're sending to the text chat, or are there fields like {{Attack=[[]]}} that you're testing simultaneously? If so, try giving those other inline rolls the same treatment (even if they're appearing to parse correctly).
When I copy and paste "{{Damage=[[0+[[floor(@{Ogeu Xoizoti|Class_Wizard_Level}*1/2)]]d4+[[1*@{Ogeu Xoizoti|Class_Wizard_Level}/2]]]]}}" The result is: {{Damage=20}} (20 is a roll result with the dice coming out exactly as I would want)
I solved the problem.  Some of the default values for other fields weren't initialized as 0, so the roll syntaxes (syntaxii? syntapodes?) were all thrown off.  Some of them were reading [[+[[0d4]]+]].
Glad you figured it out.
Thanks for your assistance. :)