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

How to find hidden attributes?

April 27 (5 years ago)

I'm starting to dive into macro writing for Roll20,.and I keep getting the sense that not all Attributes are actually listed on the Attributes page. Or, if there aren't hidden attributes, where is the information like equipment, spells, and attacks are kept? The macro page tantalizingly talks about Referencing Repeating Attributes, but it doesn't give much information about them:

By RowIndex

Attributes in a repeating row can be referenced by their RowIndex. For a repeating section named Items, you could access the ItemBonus attribute for the second item on a character with the following syntax:

@{selected|repeating_items_$1_itembonus}

So this seems to suggest I can access the information listed on the character sheet, but I can't find anywhere giving a list of what all these Attributes are called. Can anyone point me in the right direction?

Also, it seems that "selected" has a different set of available attributes than any specific character-- is that true?

Thanks.

April 27 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

You are correct: The Attributes listing on the attributes and abilities tab does not show all attributes. it never shows repeating attributes (but they aren't the only attributes that dont show up there - autocalc fields, and attributes with the hidden tag doesnt show either). 

The wiki cant tell you the attribute names, because every sheet is different - not everyone is playing, for example, D&D 5e.

Some sheets show the attribute name when you hover over them. Failing that, the sheet might have a wiki page listing them. And failing that, you can do it the hard way: rightclick on an attribute on the character sheet, and select "Inspect" or "Inspect Element". A new tab will open at the side or bottom, where you can inspect the sheet's html to figure out the attribute name.

Unfortunately this isnt straightforward when repeating sections are concerned. It would be easier for you to tell us which sheet you are using, and which names you want to get, and we'll tell you.


Regarding selected: it has exactly the same attributes available as specific character names. It's a replacement for character names that is identical, except that you dont need to know the character's name.

April 28 (5 years ago)

Ah, yes, I think I see. I didn't realize that different character sheets have different Attributes, but that makes sense now that you mention it. I'm just using the Roll20 5e D&D sheet for now. I think I'm seeing the Attribute names, but I need to play with it more to be sure.

Thanks for your help!