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

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
User avatar
Oryan77
Dragon
Posts: 452
Joined: Sun Feb 20, 2011 3:14 pm

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

Post 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.

Post Reply

Return to “MapTool”