Editing token bar values in a macro?

1507297761

Edited 1507297780
Jason H.
KS Backer
I have a macro that reads the values of bar3 from a selected token to determine how much healing the character needs; it works perfectly, no complaints.  I'd like to have the same macro go ahead and set the value of bar3 to the new healed-up value.  Assuming I have edit rights to the token in question, is this possible?  If so, what's the syntax?  TIA.
1507297944
You will need to have access to the API. ChatSetAttr and TokenMod could be used how you want.
1507302508
Jason H.
KS Backer
Kyle G. said: You will need to have access to the API. ChatSetAttr and TokenMod could be used how you want. OK.  I'll stick with my macro, in that case.  Thanks very much for the quick reply!