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 calling repeating NPC traits stopped working for all tokens.

1587149024

Edited 1587149392
Using the OGL D&amp;D 5e character sheet. Chrome browser: Version 81.0.4044.113 (Official Build) (64-bit).&nbsp; OS: Windows 8.1&nbsp;NT 6.3 Problem: Macro calling repeating NPC traits stopped working for all journal-based tokens. Every time I try to create a new NPC, I copy a template with some macros already created. I then populate its traits and actions and stats and rename the macros appropriately to link them up to the statblock. The basic macro looks like this for traits: /w gm &amp;{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$1_name}}} {{description=@{selected|repeating_npctrait_$1_desc}}} However, lately when I try and use this macro beyond the $0 trait, it breaks and the same macros no longer work, giving this error: No attribute was found for @{selected|repeating_npctrait_-M58D3JeJ5S5ojdCNu3w_desc} The errors in the console look like this on startup: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' 'nonce-S66rDcF2XRTZ8eZF' <a href="http://cdn.inspectlet.com" rel="nofollow">http://cdn.inspectlet.com</a> https://*.googlesyndication.com https://*.doubleclick.net <a href="https://partner.googleadservices.com" rel="nofollow">https://partner.googleadservices.com</a> <a href="https://www.googletagservices.com" rel="nofollow">https://www.googletagservices.com</a> <a href="https://ssl.google-analytics.com" rel="nofollow">https://ssl.google-analytics.com</a> <a href="https://www.google-analytics.com" rel="nofollow">https://www.google-analytics.com</a> <a href="https://ajax.googleapis.com" rel="nofollow">https://ajax.googleapis.com</a> <a href="http://ajax.googleapis.com" rel="nofollow">http://ajax.googleapis.com</a> <a href="https://d3clqjduf2gvxg.cloudfront.net" rel="nofollow">https://d3clqjduf2gvxg.cloudfront.net</a> <a href="https://cdn.firebase.com" rel="nofollow">https://cdn.firebase.com</a> https://*.firebaseio.com https://*.tokbox.com https://*.opentok.com <a href="http://static.opentok.com" rel="nofollow">http://static.opentok.com</a> <a href="http://www.google-analytics.com" rel="nofollow">http://www.google-analytics.com</a> <a href="http://cdn.crowdin.com" rel="nofollow">http://cdn.crowdin.com</a> <a href="https://crowdin.com" rel="nofollow">https://crowdin.com</a> <a href="http://stun.l.google.com" rel="nofollow">http://stun.l.google.com</a> *.sentry-cdn.com". Either the 'unsafe-inline' keyword, a hash ('sha256-3UjDrCog4X7FVjEmRVWw5+4xWlKWTCuXrasA3n+ESnY='), or a nonce ('nonce-...') is required to enable inline execution. And a lot of these: mini.png:1 GET <a href="https://s3.amazonaws.com/files.d20.io/images/70899283/fVC2vwx0EIg7cvQRfLYiJg/mini.png?1547167269" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/70899283/fVC2vwx0EIg7cvQRfLYiJg/mini.png?1547167269</a> 403 (Forbidden) I'm really not sure what's going on but I'm not allowed to create NPC tokens with more than one trait anymore. Tokens that were already using these macros worked for a while but now they are encountering the same errors when I try and interact with them. If I reopen the game, I also sometimes get this error when I try to edit a journal entry: ERROR: Unable to find character to edit. It's starting to scare me that my countless monster NPCs are getting "infected" with this strange error. If anyone knows what's up please let me know!
1587149326

Edited 1587149410
For your first issue, change {{description=@{selected|repeating_npctrait_$1_desc}}} to {{description=@{selected|repeating_npctrait_$1_description}}} There was a change to the attribute name in the D&amp;D 5e by Roll20 sheet with its last update.
1587149454
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
There was a recent sheet change. "desc" was changed to "description". This should work: /w gm &amp;{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$1_name}}} {{description=@{selected|repeating_npctrait_$1_description}}} The change only really affects new monsters, or old monsters that you edit. The data in "desc" was migrated to "description" but is still there in "desc". If you edit an older monster, only "description" will be changed.
thank you so much! Where do I find updates to this sort of thing in the future? I don't remember getting a notification from the site
1587150305
Kraynic
Pro
Sheet Author
The announcements forum.&nbsp; You have to look back a few weeks to find that change, but it was in the changelog.
1587151897
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
To be fair, it was not well described in the changelog. Unless you knew exactly what was being talked about, you would never have got it. The dev team has since apologized and is working on ways to announce changes like this better in the future. This specific sort of change is announced in the sheet feedback thread as well. The current thread is&nbsp; D&amp;D 5th Edition by Roll20 , but this changes from quarter to quarter (it's two weeks overdue). It's a useful thread to follow.