Updated Token Action (markdown)
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user