Skip to content

herolab.getInfo

Jamz edited this page Mar 4, 2019 · 4 revisions
• Introduced in version 1.5.0

Get basic information about the Hero Lab data associated with this token. It returns a JSON object containing various metadata about the character.

sample

{
	"summary": "Young red dragon - CE Large dragon",
	"masterIndex": null,
	"isAlly": false,
	"images": ["asset://8799bd3b26bc614cf0a0f33675f5e77d", "asset://80b3ea5b47f5f1c7aec06a28219cde47"],
	"portfolioPath": "C:\\Users\\John\\Documents\\Pathfinder\\Giantslayer\\Episode 5 tokens\\",
	"playerName": "Joe",
	"isMinion": false,
	"portfolioFile": "C:\\Users\\John\\Documents\\Pathfinder\\Giantslayer\\Episode 5 tokens\\Part 3 GS 5.por",
	"gameSystem": "Pathfinder Roleplaying Game",
	"heroLabIndex": "11",
	"isDirty": true,
	"name": "Young Red Dragon #3",
	"lastModified": "Fri Nov 02 16:28:33 CDT 2018",
	"masterName": ""
}

Usage

  1. herolab.getInfo(id)

Parameters

  1. id - The token id of the token to name, defaults to the Current Token.

Example

  1. [heroInfo = herolab.getInfo()]
  2. [summary = json.get(heroInfo, "summary")]
  3. [gameSystem = json.get(heroInfo, "gameSystem")]