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

Macro - Access to the Repeating fields for the Traits / Features?

Is there a way to access the Traits and Features section via the repeating action type approach?

[@{selected|repeating_attack_$0_atkname}](~selected|repeating_attack_$0_attack)

How can I find the names of all the other fields I can get to with macros?

https://wiki.roll20.net/5th_Edition_OGL_by_Roll20#.2817.29_Features_.26_Traits

March 23 (5 years ago)
Kraynic
Pro
Sheet Author

One way to go about it is to drag whatever you are after to the quick macro bar.  Before editing, that generally shows the whole thing.  That will show the row id as the long string of numbers and letters that you can replace with $0 (or whatever number).  If you roll it from there, put your cursor in the cat entry box, and then hit the up arrow, it will show the shortcut that method uses of calling that roll.

You could also right click on something and select "Inspect Element" from the drop down.  This will show you the html code of that section of the sheet where you can get the repeating section label (the html label, not what is shown as a section title on the sheet, though they may be the same) and the individual input attribute names.

Here's macro copy I use to create buttons for the Features & Traits area:

[@{selected|repeating_traits_$0_name}](~selected|repeating_traits_$0_output)
[@{selected|repeating_traits_$1_name}](~selected|repeating_traits_$1_output)
[@{selected|repeating_traits_$2_name}](~selected|repeating_traits_$2_output)

etc...

ah traits and output... ugh  Thanks to both of you guys, these tips help make our games go so much faster