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

Macro using ”Selected” to find an ”Attribute” works at first but later can’t find thhe attribute

1689310258
Peter
Pro
Compendium Curator
Hi folks, I have created a few Macros that use the Selected function to find an Attribute  connected to a Token . I select the Token and the Macro works fine at first, but after a while it stops working and I for example get the error message  No attribute was found for @{Selected|Parry}  in the chat logg. What might the reason for this be? Why would the Macro work at first and then stop working, even though the Attribute hasn’t changed? Thank you! Peter
1689328256
GiGs
Pro
Sheet Author
API Scripter
I've never seen this but I'm not a heavy player. If it's a widespread problem, we need more eyes on it. The only think I can think of, is I always use lower case for selected - is it still an issue for you if you do that?
1689330226

Edited 1689330251
Peter
Pro
Compendium Curator
@GiGs thanks, well it doesn’t seem to make a difference with the lower case s when I change it.
1689331508

Edited 1689331592
GiGs
Pro
Sheet Author
API Scripter
I was just clutching at straws there - Roll20 macros are supposed to be case-insensitive, but it was worth a try. Does this happen with multiple characters, or just one? If it's just one, it's possible a specific character has become corrupt.
1689339306
Peter
Pro
Compendium Curator
It happens to multiple characters, but I have been testing now and it seems it is connected to ipad (and iphone), and how they lose connection with the server. When that happens, the sync between the macro, token and character seems to get lost on the way. If I remove the token and then add it again to the battlemap, it works again for a while. Now I'm on my laptop trying it out, and it seems to work fine from here, so far.
1689339347
Gauss
Forum Champion
Hi Peter,  Could you send me an invite so I can take a look at the character? That would be the most expedient way of troubleshooting this. 
1689340983

Edited 1689343384
Peter
Pro
Compendium Curator
Sure, here's the link: Like I wrote, it seems to work fine on laptop, but when working from my iPad (or iPhone) this problem arises Thank you for taking the time to check it out! P
1689341079
Peter
Pro
Compendium Curator
The Macros in question are Ranged and Melee Attacks For characters you can check out any of them, including Mooks
1689342984
Gauss
Forum Champion
Peter, please delete your link. It should not be posted publically.