For instance, you have a json with ["One", "Two", "Three", "Four"]
Now you want to run a macro that choose which of these to select. Ideally, the macro would process the json and put a checkbox next to each entry for the json to choose if you want it or not.
Then the macro would return a json of the results. The entry json would be of different lengths each time.
I'm basically thinking of a targeting macro that would grab all the PC's (or NPC's) within a certain distance and ask if something applies to them (Think selective channeling in Pathfinder).
I could do this with the macro going through a loop for each token and doing an input question for each one, but that would be tedious (And a lot of clicking). I want every possible choice to show up on the screen.
Ideally, something like this:
Code: Select all
[h: xxx=json.fromList("One, Two, Three, Four")]
[h: input("x|"+json.toList(xxx)+"|Choose|Check")]
[r: x]