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.
Macro text: !gmnote I used to use it in the macro bar, so I could click the button in the bottom macro bar while a token is selected, and it would whisper their "loot" (what I wrote in the token's GM Notes) to me in the chat. But it stopped working.  Then I saw your note about checking "Show as Token Action". This would be even better, but it still doesn't work. I select a token that has something written in the GM Notes. I click onthe macro button that is now in the upper token actions bar. I get a chat message         "(From NameofSelectedToken):" but no actual text pulled from the GM Note. 
1767644349
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hmm. I'm not sure what the issue might be, based on your description. Did you run config directly after install? Which sheet is the base sheet in your game? Finally, if you want to DM me a game invite and promote me to GM, I'd be happy to hands-on investigate.
I don't recall exactly what I did when I first installed the script months ago, but I feel like I had to run a config to make sure it whispers to the GM.  2014 was the base sheet, but I just went thru a full conversion. My goal was to go fully with 2024 now that its working better, because I felt having both was causing issues. But now it seems my only option was the new dual sheet setting.  I just DMed. If you have the time you can take a look. Thanks.
1767651761
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If you DMed, I don't see anything in my Inbox.
Believe it or not, the I also struggled with the DM function. I think I finally got it. 
For anyone who stumbles onto this thread, Keith fixed it...of course. Thanks.
1767721867
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If nothing appears other than maybe a blank bar when you issue a Supernotes command, the most likely cause is a config issue: the script looking for a rolltemplate that is not on the installed sheet. The quickest fix is to set the script to the default template (that exists in every game): !gmnote --config|default You can then run: !gmnote --config And choose from the list of defaults, a sheet that is installed — or keep the script on default . Another option is to always use a custom template. You can see samples here .