GiGs said: The second one wont work, but I dont see anything wrong with the first (apart from the fact /roll commands only work if they are the start of a line). Try thi: ?{Choose roll type | Defence, rolls defence with a result of [[1d10 + @{defence} + ?{Bonus Defence&#124;0&#125;]] | Resistance, rolls resistance with a result of [[1d10 + @{resistance} + ?{Bonus Resistance&#124;0&#125;]]} And if it doesnt work, check your @{defence} attribute - make sure it's spelled correctly (should it be @{defense} ?), and that the value in the attribute is a number. I tested by using a number in place of the @{defence} attribute, and it worked fine. This is how it looks and if I choose Defence I get this: Here is everything: <button type='roll' class="sheet-button sheet-passiveButton"
value="
?{Choose roll type |
Defence, rolls defence with a result of [[1d10 + @{defence} + ?{Bonus Defence&#124;0&#125;]] |
Resistance, rolls resistance with a result of [[1d10 + @{resistance} + ?{Bonus Resistance&#124;0&#125;]]}"
name='roll_DefenceResistance2' />
<h4>Defence: </h4>
<input type="number" style="width:20px" class="sheet-hidden sheet-centered" name="attr_defence" value="0"></input>
<h4>Resistance: </h4>
<input type="number" style="width:20px" class="sheet-hidden sheet-centered" name="attr_resistance" value="0"></input> I appreciate the time you are taking for me, as far as I can tell this should be working, so I am worried I am doing something stupid XD Edit: FFS, this works: <button type="roll" class="sheet-button sheet-passiveButton" value="?{Choose roll type |
Defence, rolls defence with a result of [[1d10 + @{defence} + ?{Bonus Defence&amp#124;0&amp#125;]] |
Resistance, rolls resistance with a resistance of [[1d10 + @{resistance} + ?{Bonus Resistance&amp#124;0&amp#125;]]}" name="roll_defenceResistance"/> why do I need to add the &amp rather than just &...but luckily I saw this tip somewhere, does this maybe have something to do with the way the new sandbox handles uploads?