
This script enables the use of bar2 (Or any of the three bars), as a presentation layer for displaying data.
Information entered in to the GMnotes section of a token will automatically be displayed to the GM (Or to the players - configurable via the standard roll20 token permissions interface). The script works by creating a specially formatted string (Substituting out problematic characters for unicode look-alikes), overflowing the 'bar2_value' field. This enables us to display popup information when tokens are selected, without expensive API calls.
Git: https://github.com/defamai/Roll20/blob/master/Toke...
This script also requires my "Common Utilities" script:
https://github.com/defamai/Roll20/blob/master/comm...
This script may also be called programmatically:

Changelog:
d4f90e91f464204c7e15f746855bd1e4d1aa01b3:
Fixed underflow for smaller tokens, which was preventing the text from displaying.
8566fb781f2ecca22ab31aef928037fcafb359f0:
Fixed a bug that was causing unicode characters to break the script.
7eb8b499fc5562ec1314316ef426be8d7f17cb52:
Added line-wrapping functionality.
Information entered in to the GMnotes section of a token will automatically be displayed to the GM (Or to the players - configurable via the standard roll20 token permissions interface). The script works by creating a specially formatted string (Substituting out problematic characters for unicode look-alikes), overflowing the 'bar2_value' field. This enables us to display popup information when tokens are selected, without expensive API calls.
Git: https://github.com/defamai/Roll20/blob/master/Toke...
This script also requires my "Common Utilities" script:
https://github.com/defamai/Roll20/blob/master/comm...
This script may also be called programmatically:
gmn.SetPopupData(
myData, // The string or array to be displayed.
token, // The token to operate on.
gmn.gmNotesBar, // "bar2_value" by default size); // How far off center (In roughly token-width 70px increments) the message should be offset.

Changelog:
d4f90e91f464204c7e15f746855bd1e4d1aa01b3:
Fixed underflow for smaller tokens, which was preventing the text from displaying.
8566fb781f2ecca22ab31aef928037fcafb359f0:
Fixed a bug that was causing unicode characters to break the script.
7eb8b499fc5562ec1314316ef426be8d7f17cb52:
Added line-wrapping functionality.