Is there already a macro (maybe in a framework) that I can copy and edit that will pop up a window with a list of spells to select and add a state to the token? My campaign window is getting unwieldy with all these macro buttons.
Ideally, what I hope I can do is also add my current code to the above macro. When I use my macro, it also adds descriptive text to the portrait window that tells what the spell effect does. For example, my Mage Armor macro will add the state image to the token and adds the text "+4 AC" to the portrait window. The code looks like this:
Code: Select all
[h: SelectedTokens=getSelected()]
[FOREACH(TokenID, SelectedTokens, " "), CODE:
{[h: NewState=if(getState("Mage Armor",TokenID)==1,0,1)]
[h: setState("Mage Armor",NewState,TokenID)]
}]
[H: abort(0)]