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

Dark Heresy Initiative Macro

So I'm having a bit of trouble with what is for me a pretty complex macro. Basically I want to make a macro for the group I am playing with that will allow them yo click their tokens and roll for Initiative. In Dark Heresy Second Edition this done by roll 1d10 and adding your agility modifier to the roll for your grand total. Agility modifier like all modifiers is the 10s digit of your Agility score, but sadly the current sheet has no way to reference just the tens digit only the whole score. So I need to roll a d10 then via math add 1/10th rounding down and then add the resulting number to the turn tracker. This is what I have thus far but it doesn't seem to work, I check and Agility score can be referenced via "Agility" in caps sans the quotations of course: [[1d10+floor({Agility}/10)&{tracker}]] Is there something I'm obviously doing wrong here? It only rolls the d10 and ignores the rest. Any feedback would be greatly appericated.
You need to bracket the floor function in [[ ]] and you need to indicate which character's or token's Agility score you want to use. I prefer to use the "selected" option, so one macro can work for multiple characters: [[1d10 + [[floor(@{selected|Agility}/10) ]] &{tracker} ]] But you can also use a character's name, like so: [[1d10 + [[floor(@{Billicus|Agility}/10) ]] &{tracker} ]] Hope this helps.