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

[Help] Are there events for rollable tables?

Do rollable tables invoke any kind of event that I can react to in the API? I tried change:rollabletable, but neither clicking the roll button, nor randomizing a rollabletable based token invoked an event. Any ideas?
Assuming you're wanting to catch items changing, rather than the table name changing, you probably want to watch tableitem events rather than rollabletable events (not that I can confirm that change:tableitem events are generated, but it would be the logical thing to look for).
1438349568
Lithl
Pro
Sheet Author
API Scripter
There are three events for every object type. add:type, change:type, and destroy:type. Registering a function for the change:rollabletable event will work, but it will only fire when you change the table's name, or change the visibility to players. change:tableitem will fire when you change the image, name, or weight of an item in the table. add:tableitem will fire when you add a table item to the rollable table, and destroy:tableitem will fire when you remove a table item from the rollable table. If you want an event to react to rolling on the rollable table, you'll need to inspect chat:message events to find it. Changing the displayed side of a rollable token should fire change:graphic.