From 30b248a2cf36b4b2e412bd2d9225aafc98e619c5 Mon Sep 17 00:00:00 2001 From: Material Foundry <68693756+CDeenen@users.noreply.github.com> Date: Wed, 24 May 2023 15:51:41 +0200 Subject: [PATCH] Updated Token Action (markdown) --- Token-Action.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Token-Action.md b/Token-Action.md index e27859b..38cf3e0 100644 --- a/Token-Action.md +++ b/Token-Action.md @@ -93,13 +93,17 @@ The stats that are available will depend on the game system, and will usually in

Custom Stats

By selecting 'Custom', you can enter a formula to get any stat from a token by filling in the path the the desired stat (from the token object).
-For example, to get the strength modifier in dnd5e, you'd use the path `actor.data.data.abilities.str.mod`. Any stat you want to display needs to be prefixed by '@', and surrounded by square brackets '[' and ']'.
+For example, to get the strength modifier in dnd5e, you'd use the path: + +`actor.system.abilities.str.mod` +
Any stat you want to display nee4ds to be prefixed by '@', and surrounded by square brackets '[' and ']'.

-So for the strength modifier, you'd fill in `[@actor.data.data.abilities.str.mod]`.
-You can add text around it: `STR: [@actor.data.data.abilities.str.mod]`
-And use multiple stats: `STR: [@actor.data.data.abilities.str.mod] DEX: [@actor.data.data.abilities.dex.mod]`
-
-Note: Starting from Foundry v10, `actor.data.data` is replaced with `actor.system` +So for the strength modifier, you'd fill in: +`[@actor.system.abilities.str.mod]`.
+You can add text around it: +`STR: [@actor.system.abilities.str.mod]`
+And use multiple stats: +`STR: [@actor.system.abilities.str.mod] DEX: [@actor.system.abilities.dex.mod]`

On Click

Using 'On Click', you can perform something by pressing the button.