Page 1 of 1

A macro or framework with D&D 3.5 list of spell token States

Posted: Sun Aug 14, 2016 1:42 am
by Oryan77
I currently have about 20 macro buttons on my campaign window that turn on/off states that identify spell effects.

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)]
I am hoping to do the same thing, but with a single macro that allows me to select which spell (State) I am adding to the token.