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

Nesting Attribute Calls

1705724264
Essen
Pro
Marketplace Creator
Since I use multiple monsters with one character sheet, I made multiple attributes, and I am trying to use the token name, which is set to a number, in order to call an attribute.  So the one named 1 will pull adv1, the one named 3 will pull adv3. Is there any way to do this? I plan for this to be pulled into a ScriptCards macro, so I'm able to do more advanced stuff, but something like this feels too niche for me to figure out.
1705725057
Essen
Pro
Marketplace Creator
I figured it out. @{selected|attrstart}selected|adv_chk}@{selected|token_name} attrstart has the value @{ adv_chk has the value @{selected|adv_chk and the token is named 3} Whatever adv_chk3 contains shows up properly.
Yep, that's using the Prefix trick outlined by Kyle G .