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 .
×

Calling Attribute within another attribute call

I want to do this : @{@{character|attribute}|attribute} But it leads me to this error :  No character was found for '@{character' And it actually write in the chat the correct value for @{character|attribute}. I don't understand how I should do it/what I am doing wrong. If it can help, it will be used in a global macro. So I am asking for your help, please. 
1612306604

Edited 1612306641
Oosh
Sheet Author
API Scripter
That isn't possible as written, as the parser works left to right rather than inside out - you can get the Attribute reference without error by escaping the outer call: @{@{character|attribute}|attribute} but it won't resolve to a value. You have a few options: 1 - The prefix trick 2 - Use an Ability (abilities are parsed first), so @{character|%{character|ability}} will work if that ability contains a valid Attribute name. This is not overly useful unless you have API to dynamically set the ability content, though there are a few use cases of mass-modifying macros that the DM uses. 3 - Discover a new Stupid Trick that allows the nesting of Attributes I vote you go with the 3rd option