herolab.isMinion: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=herolab.isMinion |trusted=true |version=1.5 |description= Returns true if token is a Hero Lab "minion" character, such as an Eidolon or Familiar. Otherwi...") |
No edit summary |
||
Line 4: | Line 4: | ||
|version=1.5 | |version=1.5 | ||
|description= | |description= | ||
Returns true if token is a Hero Lab | Returns true if token is a Hero Lab ''minion'' character, such as an Eidolon or Familiar. Otherwise it returns false. | ||
|usage= | |usage= |
Revision as of 18:12, 5 March 2019
herolab.isMinion() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.5
Returns true if token is a Hero Lab minion character, such as an Eidolon or Familiar. Otherwise it returns false.
Usage
herolab.isMinion()
herolab.isMinion(id)
Parameters
id
- The id of the token. Defaults to the Current Token.
Example
Get the boolean value of the isMinion flag in the Hero Lab data.
[r: isMinion = herolab.isMinion()]
Returns:
0 or 1
This is the same as using the getInfo() function and reading the isMinion
field.
[h: info = herolab.getInfo()]
[r: isMinion = json.get(info,"isMinion")]
Returns:
0 or 1
See Also
Version Changes
- 1.5 - Added to main MapTool build.