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

[Request] Dump GM Info block to Chat

1440350954
Pat
Pro
API Scripter
Folks, Does anyone have a script or code block example that will dump the contents of a Character's "Bio & Info" field to the chat as a whisper to the GM? I don't care about formatting, just trying to get at it programmatically... Thanks in advance.
1440355614
The Aaron
Pro
API Scripter
Pretty sure I had one at some point. I believe you have to use the get() with callback syntax: obj.get('bio', function(text){  sendChat('API','<b>Bio is:</b><br><pre>'+text+'</pre>'); });
1440398143
Pat
Pro
API Scripter
Thanks Aaron - that did it!
1440414116
The Aaron
Pro
API Scripter
Good deal!