getMacros

From RPTools Wiki
Revision as of 13:09, 13 December 2008 by Craig (talk | contribs)
Jump to navigation Jump to search

Function getMacros

Returns a Macros:string list of the labels of all of the macro buttons on the Current Token.

Usage

[h: macros = getMacros()]
[h: macros = getMacros(delim)]

delim is the delimiter used to separate the values in the string list which defaults to ',' if not specified.


Examples

To display all of the macro button labels on the current token use.

[h: macroLables = getMacros()]
[foreach(macro, macroLables, "<br>"): macro]