From 7a4053c4d584669480408a386990e87bbab0c9ab Mon Sep 17 00:00:00 2001 From: CDeenen <68693756+CDeenen@users.noreply.github.com> Date: Tue, 2 Feb 2021 03:44:19 +0100 Subject: [PATCH] Updated Token Action (markdown) --- Token-Action.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Token-Action.md b/Token-Action.md index 403d2a7..dc45278 100644 --- a/Token-Action.md +++ b/Token-Action.md @@ -90,7 +90,8 @@ In 'Formula' you can fill in the desired formula. You can use the following: Forget about the proper order of operations, any operation is performed from left to right. Each operation must be separated by an empty space. A properly formatted formula has a 'target' in the form of token or actor data, followed by a '=', followed by either a value or a function.

Token and actor data is the path the the desired data (from the token object).
-For example, to get the hit points in dnd5e, you'd use the path `actor.data.data.attributes.hp.value`. Any stat you want needs to be prefixed by '@', and surrounded by square brackets '[' and ']'.
+For example, to get the hit points in dnd5e, you'd use the path `actor.data.data.attributes.hp.value`.
+Any path you want needs to be prefixed by '@', and surrounded by square brackets '[' and ']'.
So in for the hp you'd fill in `[@actor.data.data.attributes.hp.value]`

`[@this]` is a shorthand for whatever data path you have to the left of the '=' sign.