View Full Version : NPC icons
Stv
March 27th, 2020, 17:15
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.
gamerhawaii
March 27th, 2020, 22:34
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();
Stv
March 27th, 2020, 22:43
Thanks for the reply, I'll have a bash with that and see how I get on.
Cheers, Steve.
BRUNOSALVADIO
March 28th, 2020, 01:33
Could you ask me any questions, are these changes coreRPG?
Could you show a screenshot of what happens with this implemented code?
Stv
March 28th, 2020, 15:46
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.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.