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

Super Notes Query

Hi, A while ago Keith gave me this macro -  !selfnote --id@{target|token_id} --bio --notitle - which I added to my players 2014 character sheets so they could individually view monster imagery as much or as little as they liked instead of me sending the image for all to see in chat. Recently moved over to the 2024 sheet and the macro doesn't work and sends TypeError: E.replceAll is not a function to chat  so just checking if this is something to do with the new sheet or if the macro needs to be adjusted to make it work.
1767192231
timmaugh
Forum Champion
API Scripter
Is that a verbatim cut & paste of the error? Because I would think the function would be "replaceAll"... ...I'm just trying to pin down if this is a simple typo in the code or a larger problem of Beacony sheets not playing nicely.
1767202456
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi FFR! You are running into a limitation of the two-sheet game architecture. Specifically token macros on a beacon sheet cannot be used to target a legacy sheet and vice versa. The workaround is to place your macro code into a standalone macro in the Collections tab, and set it to be a universal token action (that is a checkbox on the macro editing dialog box.). Make sure permission is set to "All Players". The macro will be available to all players whenever they have a token selected, but will be run as if it were a regular old Macro in the Collections tab. That should allow it to be run universally. It also means you don't have to add it to every character sheet individually.
Hey Keith, Before the switch to the two-sheet system, I was using !gmnote as a sort of loot drop system. I would keep a note of whatever the creature was carrying in the token's GM Notes then use the macro button in the macros bar to quickly pull up that info if the party looted the body. After the switch, it still whispers to the GM, but there is no text inthe whisper even if I have loot written in the GM Notes. I tried the switch to a universal token action as recommended above, but still get blank messages.  Does the script just not run when the tokens are connected to a 2024 sheet?
1767206606
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Carnie DM! It should run just fine for that use, since the GMNotes are stored on the token, and sheet should not come into it. Can you go into more detail on the full text of the macro, where it is stored, and from where or by what manner it is activated?
Keith, That resolved the problem. Thanks as always.  keithcurtis said: Hi FFR! You are running into a limitation of the two-sheet game architecture. Specifically token macros on a beacon sheet cannot be used to target a legacy sheet and vice versa. The workaround is to place your macro code into a standalone macro in the Collections tab, and set it to be a universal token action (that is a checkbox on the macro editing dialog box.). Make sure permission is set to "All Players". The macro will be available to all players whenever they have a token selected, but will be run as if it were a regular old Macro in the Collections tab. That should allow it to be run universally. It also means you don't have to add it to every character sheet individually.