getMacroIndexes

From RPTools Wiki
Revision as of 04:07, 7 March 2009 by Verisimilar (talk | contribs)
Jump to navigation Jump to search

getMacroIndexes() Function

Returns a list of the macro buttons on the Current Token that have the specified label. The type of the value returned depends on the delimiter parameter.
  • If the delimiter is not specified then a string list is returned with the default value of ',' is used.
  • If the delimiter "json" then a json array is returned.
  • Otherwise a string list is returned with the delimiter passed in.

Usage

[h: indexes = getMacroIndexes(label)]
[h: indexes = getMacroIndexes(label, delim)]

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


Version Changes

  • 1.3b49 - Added "json" delimiter option.