Thread: NPC icons
-
March 27th, 2020, 17:15 #1
NPC icons
Does anyone know how to get the icon reference from an NPC in the combat tracker?
I have the Nodename and Displayname of the npc, but can't figure out how that ties in with the npc's icon.
Cheers, Steve.
-
March 27th, 2020, 22:34 #2
- Join Date
- May 2007
- Posts
- 84
Not sure I understand exactly what you are asking, but I have an extension that I needed to get the Token name for the NPC. I was getting a node from "CombatManager.addCombatantFieldChangeHandler" so you probably do not need the first line if you already have the node from the combat tracker. The code is:
local combatTrackerNode = nodeField.getParent();
local token = CombatManager.getTokenFromCT(combatTrackerNode);
token.getName();
-
March 27th, 2020, 22:43 #3
Thanks for the reply, I'll have a bash with that and see how I get on.
Cheers, Steve.
-
March 28th, 2020, 01:33 #4
- Join Date
- Jan 2020
- Posts
- 5
Could you ask me any questions, are these changes coreRPG?
Could you show a screenshot of what happens with this implemented code?
-
March 28th, 2020, 15:46 #5
Thanks for the pointer gamerhawaii, it put me on the right track. However it turns out I can't manage what I wanted anyway
Sorry Bruno, no screenshots of anything to show you.
Cheers, Steve.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks