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 do I nest @{} references?

I'm trying to make a custom character sheet, and in the equipment section, I have a "skill" option, where you enter what skill a particular item uses. So for instance, a pair of glasses uses Intelligence as its modifier stat. So next to the item, under the skill text box, you put that item's particular skill. Now, when you have to roll a defense roll, it requires you to add a [[d100+@{@{[SLOT]_slot_skill}}]] However, I get an error when I try something like this. What needs to happen is the variable that represents the text box has the name of the particular skill, and you must then call that players skill How do I nest @{} references?
1510577871
Jakob
Sheet Author
API Scripter
You cannot nest references like that. You could use sheet workers to achieve something like this, however. If you have fixed finite list of skills to choose from, a select could also do the trick.
There actually is a way to 'nest' Attribute calls , but I would try to use the methods Jakob mentioned before resorting to it. The nesting would look like: [[ d100 + @{prefix}@{character_name}|@{[SLOT]_slot_skill}} ]] Where the value of @{prefix} is @{