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

Getting the GM Notes of the selected token in a macro

1612788898

Edited 1612788918
Hello, I would like to get the GM notes content of the selected Token within a macro . Is it possible ? With @{selected|bar1}, I got the bar value, with @{selected|token_name}, I got the token's name. What about GM Notes ? I've tried @{selected|gmnotes} without success :( Thanks in advance.
The only way to get the GM Notes is with an API script (Pro subscription required). There's a script that does this already called SuperNotes.
1612827455
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
My guess the reason for this is that attribute calls primarily get text or numerical data, while GM notes can hold HTML, pictures, styled text and so forth. That's beyond the call of duty for a macro.
1612831398
Oosh
Sheet Author
API Scripter
Yeah, GM notes, default tokens, bios (maybe some other things) are stored as blobs, not strings, and need certain functions to make them available in a useful way. If you could find a way to grab the value with a macro, you'd get a string of numbers which wouldn't be much good.
Jarren K. said: The only way to get the GM Notes is with an API script (Pro subscription required). There's a script that does this already called SuperNotes. Thank you for your reply keithcurtis said: My guess the reason for this is that attribute calls primarily get text or numerical data, while GM notes can hold HTML, pictures, styled text and so forth. That's beyond the call of duty for a macro. Good point. Anyway, thank you