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

Attributes not inserting into macros

I'm pretty familiar with roll20 and have succesfully used macros with attributes in the past but my current game I'm running will not let me insert attributes into the macro. When I type the @ symbol and try to type the attribute it doesn't autocomplete. Even If I type the whole attribute name, when I run the macro it just prints @(name of attribute) and doesn't give the value. Is there something that I'm doing wrong? I'm the dm, but I made sure that I had it in my journal and I could control it. Please help. Inputting initiative by hand is a pain in the ass. 
August 25 (8 years ago)
Hi, Lance D. Check out: https://wiki.roll20.net/Macros#Autocomplete

I hope this helps!
August 25 (8 years ago)
Do you mean it writes @(name of attribute) into the macro, or also into the chat when you execute the macro?

The former is absolutely normal, the data is pulled from the char sheet at the time of macro execution, not while you write the macro.
August 25 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Also, it should be @{attributeName}, not the parentheses.
First of all I guess I shouldn't have used parentheses. I wasn't using parentheses in the macro I just used that in the post. Second nothing is auto completing. When I type '@' and then start typing the name of an attribute no dropdown appears. 
August 25 (8 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Personally I've never had the dropdown for attributes occur for me, but based on the macro dropdown behavior, I think that's because there are too many similarly named attributes on my sheets and the macro dropdown only seems to pop up if there are lo-mid single digit numbers of macros that match the input up to that point.
August 26 (8 years ago)

Lance D. said:

When I type '@' and then start typing the name of an attribute no dropdown appears. 

I just made some edits to the Autocomplete section to try to help clarify where the autocompletion of different calls are supported. In which text area are you attempting the autocompletion of an Attribute call?
I'm trying to get it to auto complete in a characters macro. But even if it didn't it's not  inserting the attribute value into the macro. 
August 27 (8 years ago)
Thank you; I was successful in replicating the issue that you described. Steps to reproduce:
  1. +Add a new Ability; click the 'pencil' picto to access its action textarea.
  2. There should be no issues with generating autocomplete lists (Attribute or Macro) at this point.
  3. Click the 'checkmark' picto to save changes, then click the 'pencil' picto again.
  4. It is no longer possible to generate autocomplete lists within the action textarea of that Ability.

I have notified the Dev Team of this issue. Thank you for bringing this to our attention!