RPTools.net

Discussion and Support

Skip to content

It is currently Fri Jul 21, 2017 9:38 am 




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. :)



Reply to topic  [ 1 post ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Dragon
 
Joined: Sun Feb 20, 2011 3:14 pm
Posts: 354
 Post subject: A macro or framework with D&D 3.5 list of spell token States
PostPosted: Sun Aug 14, 2016 12:42 am 
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:
[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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 1 post ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 3 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman