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

Sending Info to Chat

I feel a little silly asking this question. I am building a character sheet, and there are areas that list traits. The traits have textboxes that store information about the trait. I want to have a device that when clicked will send that information to the chat window. How would I go about doing that? I have looked around a lot,but haven't really been able to figure this out. I a, a decent coder and have done some good stuff with the sheet so far, but I cannot figure this one simple thing out. Any and all help is greatly appreciated.
1594865453
GiGs
Pro
Sheet Author
API Scripter
Roll buttons are designed to send attribute values to chat. Text boxes (I assume you mean textareas?) in roll20 are just containers for attributes. So you can do (as a very simple example): <textarea name="attr_some_trait"></textarea> <button type="roll" name="roll_some_trait" value="@{some_trait}">Send Trait To Chat</button> whatever is put in the button value gets send to chat, and that can be an attribute.
Hey man, thanks! I thought that might be the case, but then second guessed myself without trying it out. Thanks for the tip! Also thanks for all the other advice I have gotten from your other posts. I learned a lot from your posts to other folks, so thanks for that!
1594868010
GiGs
Pro
Sheet Author
API Scripter
Thank you - its nice to hear that!