Unless I misunderstand your suggestion, I'm not sure that will do the trick - as some background, I have a macro that generates and sets Powers for a token (so, like, you'd generate the power "Holy Strike" with all of the relevant stats calculated out, and then you can later use that power in combat). What I'm thinking about doing is this: when a player edits his or her token, and adds a power, the Power Editor macro does all the normal stuff, but
also generates a macro button on the token of the appropriate color that will activate the power when clicked.
So the createMacro() line would be something like:
Code: Select all
[h: createMacro("Holy Strike","[MACRO("HolyStrike@Lib:test"):"" ", "color=green;fontColor=black;autoExec=true;")]
However, I haven't yet come to the right arrangement of quotes and concatenations to treat the MACRO("HolyStrike@Lib:test"):"" bit as plain old characters, and I get null errors or various other frustrations.
Perhaps encode() will do the trick.