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

Action Points macro?

I'm trying to set up macros for a system that uses Action Points (pretty much exactly like Bravely Default, for those familiar). I'm trying to use the Turn Order window to keep track of the points.
When a character does a move, it should subtract a point. Currently included in the macro for the character's move is:

[[1 &{tracker:-} ]]

And this is functioning mostly how I want it to. It subtracts a point from the selected token in the Turn Order window. But this will work fine for players, who can only select their own token.
Then I want to have a global controller that adds a point to everyone at the start of a round, but I'm having trouble getting it to work. I want it to affect everyone listed in the Turn Order window, but I can't seem to even find any documentation on such a thing. I then decided to try at least writing out every unit's name in the macro with a command to increase it by 1, but it won't work either. Where the character's name is Bombas:

[[ @{Bombas} 1 &tracker:+]]

I receive two errors.
"No attribute was found for @{Round|Bombas}"
"SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "R" found."

I just started learning today and I barely know what these mean. As I understand it, it's trying to find an attribute belonging to Round (the name of the controller) called "Bombas," rather than adding 1 to the tracker for Bombas. And then I guess there's something else wrong but I don't know what.
July 25 (10 years ago)
The Aaron
Roll20 Production Team
API Scripter
Unfortunately, there isn't presently a way of doing this with macros.  The &{tracker} notations only affect a single selected token.
   See:  https://wiki.roll20.net/Dice_Reference#Roll_To_Ini...

You can do things like this with API Scripts (A Pro Level Perk).