Starfinder Playlist

Thread: NPC icons

  1. #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.

  2. #2
    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();

  3. #3
    Thanks for the reply, I'll have a bash with that and see how I get on.

    Cheers, Steve.

  4. #4
    Could you ask me any questions, are these changes coreRPG?
    Could you show a screenshot of what happens with this implemented code?

  5. #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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Product Walkthrough Playlist

Log in

Log in