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

createObj fires token:change

1456178053
Lucian
Pro
API Scripter
The wiki says: Note: Events are only triggered by changes made by players/the GM playing the game. Events will not be triggered by API changes. So if a player moves a piece on the tabletop, you would receive a "change:graphic" event. If you modify the same graphic's property in an API script, there will not be a "change:graphic" event triggered. But when you call createObj from the API, it immediately fires a "change:graphic" event synchronously. Looks like either the wiki needs to be changed, or there's a bug in the event code... Cheers, Lucian
1456251406
Phil B.
Forum Champion
Sheet Author
Hello again Lucian, I see you've been digging around in the API recently. This also appears to be a bug, I have confirmed and logged it and we should fix it some time in the nearish future.