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

Same formula, different result ...

Hello there I am in the process of creating a character sheet for stormbringer and I have a problem with dice rolls in the sheet. I have a button next to each feature of my character sheet such as this one for my defense rolls: <div><input type="number" name="attr_arme_def" /></div> <div><input type="number" name="attr_arme_def_total" value="@{arme_def}+@{bonus_def}" disabled="true" /><button type="roll" value="/roll 1d100<@{arme_def_total}" name="roll_def" /></div> Or this one for a memory test: <div><input type="text" name="attr_conn_memory" value="Mémoriser" disabled="true"/></div> <div><input type="number" name="attr_level_conn_memory" /></div> <div><input type="number" name="attr_level_conn_memory_total" value="@{level_conn_memory}+@{bonus_conn}" disabled="true" /><button type="roll" value="/roll 1d100<@{level_conn_memory_total}" name="roll_memory" /></div> If I have 5 bonus and 50 def I have to end up with a roll of the dice to 1d100 <55 and this is the case for the first button. Starting on the same values, the formula of the second Button gives 1d100 <50 + 5 which is not what I want. Can someone explain to me what is happening? For me the formulas are the same and they should give me the same dice roll!
1408826409

Edited 1408826523
Gauss
Forum Champion
You can only have one term after the inequality (<). You can rearrange your formula or put the terms after the inequality in an inline roll. Rearrange example: {1d100-5}<50 Inline example: 1d100<[[50+5]] My guess is that in the case of the first button it is totaling 50+5 before it sticks it into the inequality formula and that is why it works. I will move this to the character sheet forum since the rest of the problem is a character sheet issue.
1408837126

Edited 1408837599
I solve my problem with this formula: /roll 1d100<[[@{level_conn_herb}+@{bonus_conn}]]" Thanks for your advices!