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

can't get initiative to work

I have this line:  <h4><button type='roll' class="sheet-Initiative_roll" value="/e rolls Initiative [@{base-Dexterity} + @{mod-Dexterity} + @{mod-Initiative} + 1d10 &{tracker}]">Initiative</button>             <input type="number" class="sheet-numberbox" name="attr_mod-Initiative" value="0" /> Modifier</h4> when I roll it does not add anything to the tracker. Please help
1686716011

Edited 1686716300
vÍnce
Pro
Sheet Author
Try this; <h4> <button type="roll" name="roll_initiative" class="sheet-Initiative_roll" value="/em rolls Initiative [[@{selected|base-Dexterity} + @{selected|mod-Dexterity} + @{selected|mod-Initiative} + 1d10 &{tracker}]]">Initiative</button> <input type="number" class="sheet-numberbox" name="attr_mod-Initiative" value="0" />Modifier </h4> The inline roll for your macro was missing double square brackets ie "[[...]]" and I gave the button a name (nice if you ever want to drag and drop it to the quickbar). I also like to include "selected" since you will need have a token selected for the turn tracker.
it works perfect. Thank you!