getMacros

From RPTools Wiki
Revision as of 22:45, 1 December 2008 by Craig (talk | contribs) (New page: ==Function getMacros== {{ProposedChange}} Returns a Macros:string list of the labels of all of the macro buttons on the Token:current token. ===Usage=== <source lang="mtmacro"...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function getMacros

 Note: This refers to a proposed change that has not been implemented in the main code base yet.

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]