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

Does TokeNotes no longer work?

I have been trying to get the TokeNotes API to function but have been unable to get it to function. <a href="https://github.com/defamai/Roll20/blob/master/Toke" rel="nofollow">https://github.com/defamai/Roll20/blob/master/Toke</a>... Does this API no longer work or am I just messing it up? Also is there any other API that would bring up token info without actually opening the character sheet associtated?
1451671643
The Aaron
Pro
API Scripter
I don't know about TokeNotes, but there are other things you could do to show information about a token, depending on what it is you want to see. &nbsp;Here's a quick basic script that whispers the token's image to a player running a particular command. &nbsp;It could easily be modified to add more details (see Phnord's image further down): <a href="https://app.roll20.net/forum/post/2543865/script-q" rel="nofollow">https://app.roll20.net/forum/post/2543865/script-q</a>... There are also some non-api solutions you could use to whisper information if that interests you.
This is a cool script, but what i am looking for is a way to show more information to me when I select a specific token, ideally outside of the chat window is it become cluttered quickly. I effectively want 5 or 6 different fields.. &nbsp;Health, Physical Defense, Mystic Defense, Social Defense, Physical Armor, Mystic Armor. I can use the one of the bars for health, but the others would be great to just list down the right side of the token when it is selected, but my forum searching has come up with nothing.
For what I did there, you don't need the API, you just need fields in the character sheet (whether 'character sheet' info, or just simple Attributes to fill out.) A sample script for this information, as shown in the image, would look something like this: /w @{selected|player_name} &lt;--- player selects their own token first, this whispers to the owner of the token. This is @{target|token_name}, &lt;-- player selects the 'target' they're looking at; this returns its name. a(n) @{target|gender} of the @{target|race} race. &nbsp;&lt;--pulls gender and race details He looks about @{target|age} years old. &lt;-- pulls age details. etc. etc. It could easily be modified, for example: /w GM This is @{target|token_name}, a @{target|race} @{target|class}. He currently has @{target|HP} hit points. His Physical Defense is @{target|PhysicalDefense}, his Mystic Defense is @{target|mysticdefense}, and his Social Defense is @{target|socialdefense}. He is wearing @{target|armor} and protected by @{target|mysticarmor}. /w GM !see @{target|token_id} Keep this on the macro bar, or put it in everybody's token actions, and it's ready to go when you are! Granted, it's still coming up in the chat window, but at least it works. -Phnord
That will work, but I have one issue with it. The stats I am looking up in the character sheet is an attribute that is derived from multiple other stats. So PhysicalDefenseFinal ends up returning something like this:&nbsp;6 + 0 + (3 0) + (-3 0) + (-2 0) + (2 0) + (-2 0) + (-3 0) + (-3 * 0). I am not sure how to force it to actually do the math first.
1451714946

Edited 1451715058
Nest the Attribute call within an inline roll , i.e. His Physical Defense is [[ @{target|PhysicalDefense} ]]
Well that is super awesome, as are all of you. Thank you very much!