Updated Token Action (markdown)

Material Foundry
2023-05-24 15:51:41 +02:00
parent 74e97e5906
commit 30b248a2cf

@@ -93,13 +93,17 @@ The stats that are available will depend on the game system, and will usually in
<h4>Custom Stats</h4> <h4>Custom Stats</h4>
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).<br> 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).<br>
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 ']'.<br> For example, to get the strength modifier in dnd5e, you'd use the path:
`actor.system.abilities.str.mod`
<br> Any stat you want to display nee4ds to be prefixed by '@', and surrounded by square brackets '[' and ']'.<br>
<br> <br>
So for the strength modifier, you'd fill in `[@actor.data.data.abilities.str.mod]`.<br> So for the strength modifier, you'd fill in:
You can add text around it: `STR: [@actor.data.data.abilities.str.mod]`<br> `[@actor.system.abilities.str.mod]`.<br>
And use multiple stats: `STR: [@actor.data.data.abilities.str.mod] DEX: [@actor.data.data.abilities.dex.mod]`<br> You can add text around it:
<br> `STR: [@actor.system.abilities.str.mod]`<br>
<b>Note:</b> Starting from Foundry v10, `actor.data.data` is replaced with `actor.system` And use multiple stats:
`STR: [@actor.system.abilities.str.mod] DEX: [@actor.system.abilities.dex.mod]`<br>
<h3>On Click</h3> <h3>On Click</h3>
Using 'On Click', you can perform something by pressing the button.<br> Using 'On Click', you can perform something by pressing the button.<br>