getMacroButtonIndex

From RPTools Wiki
Revision as of 09:24, 3 March 2009 by Craig (talk | contribs) (New page: ==Function getMacroButtonIndex== '''Introduced in MapTool 1.3b50''' Returns the index of the macro button that was clicked on for the token. The macro button must have the auto execute ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function getMacroButtonIndex

Introduced in MapTool 1.3b50 Returns the index of the macro button that was clicked on for the token. The macro button must have the auto execute check box selected. If the macro is not running from a token macro button then -1 is returned.

Usage

[h: ind = getMacroButtonIndex()]


Examples

[h: ind = getMacroButtonIndex()]

Returns

 -1 if the macro is not run from an auto execute macro button on a token, or a non negative number which is the index of the button.