Updated Token Action (markdown)

CDeenen
2021-02-02 03:44:19 +01:00
parent de478f1094
commit 7a4053c4d5

@@ -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.<br>
<br>
Token and actor data is the path the the desired data (from the token object).<br>
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 ']'.<br>
For example, to get the hit points in dnd5e, you'd use the path `actor.data.data.attributes.hp.value`.<br>
Any path you want needs to be prefixed by '@', and surrounded by square brackets '[' and ']'.<br>
So in for the hp you'd fill in `[@actor.data.data.attributes.hp.value]`<br>
<br>
`[@this]` is a shorthand for whatever data path you have to the left of the '=' sign.<br>