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

Reading a characters Attribute & Abilities

I am new to this and have searched, but cannot find the correct sytex. Here is my working code:     /roll d?{Initiative?|6|8|10} &{tracker:+} I want to replace the " d?{Initiative?|6|8|10}" portion with reading the "DV_Init_dieroll" attribute on the character attributes tab.  Note I have already created the attribute. Thank you in advance DeVo
1731003700

Edited 1731003783
An attribute is called via the format of @{character|attribute}, and character can be character name, selected (which uses the selected token's linked character sheet's attribute), or target (the same as last, but for targeted token). You can also just use @{attribute} alone if you call it from the same character sheet that the attribute is on. So, if you save it as an ability on your character sheet,  /roll d@{ DV_Init_dieroll}  &{tracker:+} should work, or you could use  /roll d@{selected| DV_Init_dieroll}  &{tracker:+} since you'll want to have a token selected for the tracker anyway.
Thank you - DeVo
Hi, Tuo - The line you proved worked perfectly.   Thank you again I want to expand it a little.  In the same macro, but after the roll and adding to the tracker, I am trying to figure out how to resort the tracker (turn order) in ascending order.  I have looked through the documentation and understand the minimal command available for the tracker.  Also tried the setting for the Turn Order (cog) and set it to ascending, but after running the above working macro, it doesn't resort unless I hit the sort button.  Trying to avoid needing to hit the sort button after every initiative roll.  An auto-sort ascending line. Thank you in advance ~DeVo~