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

Custom Character Sheet Tool Tip question

I have built a skillMapTable that has some bacsic info about the skills for our players. const skillMapTable = { "Archery": { label: "archery", base: "10", skill: "archery_skill_mdr", bonus: "archery_mdr", group: "Combat", notes: "Archery" }, }; Wrote a sheet/worker to add somethings so they'd be able to use @{archery_notes} on("sheet:opened", function () { // Initialize skill values and notes from skillMapTable Object.entries(skillMapTable).forEach(([key, { label, base, notes }]) => { const defaultVal = parseInt(base, 10) || 0; updates[`${label}_skill_mdr`] = defaultVal; updates[`${label}_mdr`] = defaultVal; updates[`${label}_note`] = notes || ""; }); setAttrs(updates); }); But when I try and use it like title=@{archery_notes} All I get for the mouseover is @{archery_notes} and not the text inside. Is there a way to use it this way, and I'm just missing it, or is there a better way?  I just wanted to keep all the data in one place for easy updating, and not have to search through the HTML to correct spelling, etc.
1744871042
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
unfortunately, titles can't be dynamic like that. If you want something like a tooltip, you'll have to build it yourself and there aren't any excellent solutions to the problem with what we have available in legacy sheet code.
Thanks for the update.  Appreciate it.