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

Odd behavior for Supernotes

1731793000

Edited 1731793147
I am using Supernotes on transparent tokens to hold info for rooms in a complicated map the players have not yet gotten to. The tags all work except for one. !gmnote --charnote is returning only the header   instead of the text from the GM notes of the character sheet.  Any idea why? Information in the Bio section of the character sheet is called correctly with the --bio tag, so I know the sheet is recognized and readable.  This is not a jumpgate game. I am using AD&D 2E (Simple Sheet).
1731797467
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Valerie! Hmm. Sometimes this can occur if there is html styling that I was unable to account for in the script. I'm really an amateur programmer. Try removing all styling from the character notes entry. (in extremis, select all, cut, , hit backspace a couple of times to clear out any hidden characters, paste into a text only word processor, copy that and paste back into the document. There might be a breaking, invisible style character or return in there.
Thanks, keithcurtis. In following your advice above, I realized as I was copying the text that I had a fully formatted in-line roll in there about five lines down from the top. Removing that did the trick. I guess the program was confused (excuse the anthropomorphism) by finding something it thought it should parse differently than just text. Do you know if there's a way to print the in-line roll language in chat without breaking the mod? I remember something about a "simple tag" from one of Nick O's videos. Anyway, the immediate mystery is solved. 
1731816539
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Can you post the text that did and didn't work? That would help me figure out what's going on or how to work around it.
1731904804

Edited 1731980021
I wanted to be able to quickly call a list of how I can store data in a token and call on it when needed. This is the macro that creates a button menu of things that are, or can be, stored in the token (which is attached to a character sheet with attributes ready to use): /w gm [Description](~Description) [GM-Note](~GM-Note) [Image](~image) [bar1max](~bar1max) [bar2max](~bar2max) [bar3max](~bar3max) I wanted to use supernotes to be able to remind me what field to use for a given type of data and ideally how to format it. This is what I had originally on the character sheet: GM Notes (Only visible to GM) test gm notes on sheet Description: Bar 1 prints as impartial text on grey background GM-Note: Bar 2 whispers to GM image: Bar 3 (put url in bar3) bar1max use e.g. &{template:default} {{name=whatever}} {{[[3d8]] cold damage, save for half}} bar2max bar3max This is how much I can get to work correctly before it breaks: GM Notes (Only visible to GM) test gm notes on sheet Description: Bar 1 prints as impartial text on grey background GM-Note: Bar 2 whispers to GM image: Bar 3 (put url in bar3) bar1max use e.g. &{template:default} { Adding the second open curly brace will prevent anything going to chat beyond the name of the token/character sheet.
1731910721
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Ay, yes. It looks like you are putting a roll template inside of a roll template(bar1max). That's not going to work. You could try using one of the Supernotes templates, which is just html and bypasses the rolltemplate as the overall container, but I still think it would fail.
1731979836

Edited 1731979868
I don't understand what you mean by putting the roll template inside of a roll template. That bit of code,  &{template:default} {{name=whatever}} {{[[3d8]] cold damage, save for half}} works as it should  when inserted into the bar1max field of the token called via  @{selected|bar1|max}. Does Supernotes function as a roll template? Or am I misunderstanding you?
1731988485
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Supernotes takes formatted or unformatted text* and displays it within the context of a roll template (or a faux roll template if you are using one of the built-in template styles). You are just sending a naked roll template with @{selected|bar1|max}. Having supernotes place it would be like: &{template:default} {{name=whatever}} {{ &{template:default} {{name=whatever}} {{[[3d8]] cold damage, save for half}}}} }} The parser does not know what to do with a call like this. If you are going to send a roll template, just use a regular reference, no API required. *Technically, it was built so that you could display text from areas normally unavailable to regular macros, including formatted text, from areas like GM Notes, Bio, etc.
1732056746

Edited 1732056760
Thanks for the explanation. I appreciate your help and responsiveness, as well as your macros and mods. People like you make roll20 an inviting place to GM.