getTokenMap: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=getTokenMap |version=1.5.11 |description= Gets the list of map(s) where a token resides. |usage= <source lang="mtmacro" line> getTokenMap(name/ID) getTo...")
 
mNo edit summary
Line 3: Line 3:
|version=1.5.11
|version=1.5.11
|description=
|description=
Gets the list of map(s) where a token resides.
Gets the list of map(s) where a token resides. The list is returned either as a string list, or as a [JSON Array].


|usage=
|usage=

Revision as of 14:57, 22 January 2020

getTokenMap() Function

Introduced in version 1.5.11
Gets the list of map(s) where a token resides. The list is returned either as a string list, or as a [JSON Array].

Usage

getTokenMap(name/ID)
getTokenMap(name/ID, delim)

Parameters Parameters

  • name/ID - Either the name of the token or the ID.
  • delim - The delimiter used in the string list returned, defaults to ",". If set to json, then a JSON array is returned.