Make attributes rollable using Foundry macros

This commit is contained in:
Oliver 2026-04-28 18:01:58 -06:00
parent 8f67bff2ec
commit 0cd8af77b2
6 changed files with 85 additions and 21 deletions

View file

@ -6,7 +6,16 @@
data-foreign-uuid="{{ attr.uuid }}"
>
<legend>
{{ attr.name }}
{{#if attr.system.trigger}}
<button
type="button"
data-action="executeTrigger"
>
{{ attr.name }}
</button>
{{else}}
{{ attr.name }}
{{/if}}
</legend>
<div class="attr-range">
{{#if attr.system.isRange }}

View file

@ -5,6 +5,14 @@
<div class="title grow">
<span class="name">{{ name }}</span>
</div>
{{#if system.trigger}}
<button
type="button"
data-action="executeTrigger"
>
Roll
</button>
{{/if}}
<input
type="number"
id="{{uuid}}-value"