getMacroLocation() Changes?

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
zEal
Dragon
Posts: 944
Joined: Sun Mar 22, 2009 2:25 am

getMacroLocation() Changes?

Post by zEal »

Okay, I have no idea if this is a bug or not.

It seems getMacroLocation() now accurately reports a macro's location (chat, global, campaign, Token:*, Lib:*, etc) instead of always returning "chat" if the macro was clicked on. I had to go back through several versions to find out when this actually happened, since it wasn't in any of the release notes.. 1.3b51.

I don't mind the changes at all, but I do have one question. [h,if(getMacroLocation() == "chat"): abort(0)] used to be an easy way to prevent a macro button from being clicked on. How are we supposed to do that now?

Post Reply

Return to “MapTool”