getMacros

From RPTools Wiki
Jump to navigation Jump to search

Function getMacros

Returns a Macros:string list of the labels of all of the macro buttons on the Token: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]