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

Tooltip Text in Chat

Is there a way to get the text inside a token tooltip and show it in the chat? A simple @{selected|<variable>} is enough for me. Thanks!
1668966970
Gauss
Forum Champion
Could you elaborate on what you are trying to do? It would help with coming up with possible solutions. 
1668969255
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I don't think that it is possible with an attribute call, though it could be done with a Mod script.
I wann get that "Info" text inside the tooltip field, something similar to the @{selected|token_name}, tha would get the "K" from this example.
My real intention is to get a simple way to quickly show the particular enemy loot in chat. Since the Tooltip is different in each token, that field would be perfect for this use. Trying to set a variable in the enemy sheet is a way to do that, or even a rollable table as well, but I want something unique for each token, and those solutions are more trickier and time spending when creating individual differences in the enemy loot. I could also use the bar fields, but it would waste one of the bars for this, and I usually use all three of them already.  I hope there is a way to use that tooltip field that way, if not now, soon.
The tooltip text is only available to be referenced by Mod scripts, just like the token or character sheet GM notes field. If you have a Pro subscription, you could use Supernotes or another script to reference the Tooltip field. 
Thanks for the attention, Gauss, Keith and Jarren
1669085248
timmaugh
Forum Champion
API Scripter
If scripts are available, Fetch will get that tooltip for you inline in another command/macro, so that you can use it in other scripts or output it to chat (requires ZeroFrame, too). @(selected.tooltip) @(Cryo Jack.tooltip) @(@{target|token_id}.tooltip)
Sorry, I'm not familiar with scripts, or if I can use them. But thanks for the tip, man