keithcurtis said:
It might be possible with one of Timmaugh's metascripts to replace "selected" in a macro with the character at the top of the turn order, but then you'd still have the problem of the macro names. They would not update dynamically, nor would they adjust to the number of attacks or traits available with whatever character happens to be at the top.
Yeah, Fetch gives you a handle for the current token in the Turn Order, or for one at some given offset.
Current turn's token: @(tracker.token_id)
Next turn's token: @(tracker+1.token_id)
You can return any token property, character property, or character attribute (if the token represents a character for the last 2) using that syntax. So you could get bar1 like this:
@(target.bar1)
or you could get the HP attribute like this:
@(target.hp)
There is also a page filter, which is useful if you are the GM and you see all tokens in the turn order across all pages. Players will only see (and will only get results for) the current page. The GM might need to filter it to just the current page, or to the ribbon, or to 'gm' (meaning all pages).
@(target[page].token_id)
@(target[ribbon]+1.token_id)
@(target[gm]-2.token_id)
(I think I may need to tweak the filter and resubmit to the one-click as I'm running into edge cases where it doesn't work as intended.)
In any case, I think the most applicable usage of this would be that you could, for instance, run a single ScriptCard or InsertArg menu of actions, and have that single command line build the menu based on the current token in the turn order. You might go this way if you didn't want to automatically spam the chat panel with a menu of options every time the turn changed (as you would get with an OnMyTurn solution). Instead, this method would mean that you would need to manually run the command to get the menu.
It depends on your style of play as to which you might prefer. The OnMyTurn gives a clear signal that the turn order has incremented and a new token is up, while the second method only presents a menu if you need one for the token whose turn it is.