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.
Printable View
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.
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();
Thanks for the reply, I'll have a bash with that and see how I get on.
Cheers, Steve.
Could you ask me any questions, are these changes coreRPG?
Could you show a screenshot of what happens with this implemented code?
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.