From fbd16fa1ce2eee74f970ca0748990163ef66ebf8 Mon Sep 17 00:00:00 2001 From: Material Foundry <68693756+CDeenen@users.noreply.github.com> Date: Wed, 24 May 2023 15:31:00 +0200 Subject: [PATCH] Updated Token Action (markdown) --- Token-Action.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Token-Action.md b/Token-Action.md index aea00e4..b54d6ed 100644 --- a/Token-Action.md +++ b/Token-Action.md @@ -17,7 +17,6 @@ Button functions in the top row, from left to right:

Game Systems

The Stream Deck application automatically detects what game system you're using, as long as Foundry is running and connected. If not, it will default to DnD 5e. In the module settings it is possible to configure a system override, which will force MD to use a specific system.
System-specific options, such as the some 'stats' or 'on-click' options, can result in blank fields in the property inspector, when switching from a system that supports them to one that doesn't.
-Currently 'DnD 5e', 'DnD 3.5e', 'Pathfinder 1e', 'Pathfinder 2e', 'Shadow of the Demon Lord', 'Forbidden Lands', 'Starfinder', and 'Warhammer Fantasy Roleplay 4e' are supported.

Overview

@@ -46,7 +45,19 @@ Using the 'Token' dropdown menu, you can select between the following options:
  • Actor Id: Specify the actor id in the 'Id' box
  • -In case of 'Token Name' or 'Actor Name', the first token or actor with that name will be selected. +

    Token/Actor Name

    +Fill in the complete token or actor name. The first token or actor with that name that the module finds will be selected. + +

    Token/Actor Id

    +Each token and actor has a unique id, using this you can be sure that the correct token/actor is selected.
    +
    +To find the token/actor id, open the console (press F12, make sure you're in the 'Console' tab). At the bottom there should a a field where you can write commands. First select the token you want the token or actor id from and enter the following in the field:
    + +`console.log("Token id:", game.canvas.tokens.controlled[0].id, " Actor id:", game.canvas.tokens.controlled[0].actor.id)` +
    +It should return something like: +`Token id: dQI2JudPTjw9j738 Actor id: HmrqCnyhEMvb0aDR` +, where the first 'code' is the token id and the second is the actor id. Fill this in in the 'Id' field in the Stream Deck app.

    Page-Wide Token

    All 'Token' actions with 'Page-Wide Token' enabled, will use the same token, so if you change, for example, the token name, this will change for all those actions. This allows for you to quickly reconfigure a page, or use the 'Set Page-Wide Token' 'On Click' option to change the token selection using a button press.