I am tinkering with a character sheet that displays the active states on the token.
Is there a way to update the frame that is triggered by a state being added or removed.
Obviously I can create a macro to adjust the states AND trigger a frame update, but what about if someone were to right-click the token and adjust the states there?
Frame update from a change of state on a Token?
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Re: Frame update from a change of state on a Token?
I am guessing probably not then?
Re: Frame update from a change of state on a Token?
Nope. The best way to do that is use another event like onChangeToken (or something like that) and check current states to saved states.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Frame update from a change of state on a Token?
Yes. JUH can do this for you, in fact it has a built-in "onChangeState" event. You just need to define it on your lib:token and add the JUH libs to your campaign.RedDog wrote: ↑Tue Oct 19, 2021 1:09 pmI am tinkering with a character sheet that displays the active states on the token.
Is there a way to update the frame that is triggered by a state being added or removed.
Obviously I can create a macro to adjust the states AND trigger a frame update, but what about if someone were to right-click the token and adjust the states there?
JUH Intro
https://www.youtube.com/watch?v=Hjv6eXpKZU8
Mouse Events
https://www.youtube.com/watch?v=k3BFrQzfN7M
Basic Events
https://www.youtube.com/watch?v=H9OOcbRL17c
"Joe's Ugly Hacks - Get 'em while their hot! Guaranteed ugliest hacks around or your money back!"