Please don't spread misinformation, Ammo. Of course API scripts can react to attribute changes as well as token changes. They can react to other stuff as well, like chat messages.
Events are detailed here: https://wiki.roll20.net/API:Events
It’s a little hard to follow, but basically any type of object from here: https://wiki.roll20.net/API:Objects
can be observed for any of the events: “add”, “change”, and “destroy”. You can further specify which property changed, for example:
on("change:attribute:current", someFunction);
(in the rare case where you’re observing one that starts with an _, you must specify the _)
And also, if I could whip something up that accomplishes the same thing by changing 'bar1' as opposed to the attribute, directly, that would work as well.
Look at OnMyTurn it triggers an Ability when a character’s Token’s turn comes up in the turn order: https://app.roll20.net/forum/post/6608405/slug%7D
The Aaron said:
Look at OnMyTurn it triggers an Ability when a character’s Token’s turn comes up in the turn order: https://app.roll20.net/forum/post/6608405/slug%7D
Thanks!