5E Character Create Playlist

Thread: Locked Tokens

  1. #1

    Locked Tokens

    I have a quick question, what do I need to change to make tokens that are linked to NPCs in the combat tracker movable by players?

    Would it even be possible to make this dependent on the Friendly/Neutral/Hostile indicator?

  2. #2
    per https://www.fantasygrounds.com/refdoc/tokeninstance.xcp

    Tokeninstances are listed as supporting the setModifiable method:

    setModifiable

    function setModifiable( state )

    Flags the token modifiability status. Non-modifiable tokens can't be interacted with by the clients.

    Only scripts running on the session host can set this property.

    Parameters
    state (boolean)
    A value of false to disable client interactions with the token, or true to allow them.

  3. #3
    Thanks, with that information I found the line in the script that makes the tokens modifiable by players.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in