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

Using Variables in a Repeating Section in a Macro?

I have crafted my own custom character sheet for my game where the weapon section is a repeating section where the players can just add more weapons to that section themselves. I would like to use variables within those repeating sections to make macros that my players can use without opening the character sheet every time. However when I try putting @{selected|VariableName} in the macro, it says the chat says "No attribute was found for @{selected|VariableName}." I know for sure that I am using the correct attribute name, but it is as if it isn't in the character sheet. If I wanted to pull a variable from the repeating section, what would I need to type in the macro to pull it from the sheet? Can this even be done?
You would need to use @{selected|repeating_SECTION_INDEX_ATTRIBUTE} SECTION is the name of the repeating section INDEX is either the row ID or the $X index ATTRIBUTE is the specific attribute you are wanting to use
1510007604

Edited 1510007790
I think I know what to put for the SECTION and ATTRIBUTE portion of that command, but am unsure what to put for INDEX. I ended up putting down just some number for INDEX and it just outputs a '#'. 
Actually nevermind just forgot to put a $ next to it! Thank you for your help!