Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Mythic Actions, Lair Actions and Regional Effects as separate resources (like Legendary Actions) #568

Open
vkhatuntsevv opened this issue Nov 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@vkhatuntsevv
Copy link

vkhatuntsevv commented Nov 7, 2024

Problem

hi, i want a small thing added to monster template statblock, that being whether Monster has Mythic Actions, Lair Actions, Regional Effects or not. the same way it does with Legendary actions
it is possible with Legendary Actions by putting this line inside the template:

Legendary: {#if resource.legendary}true{#else}false{/else}{/if}

the same way i did it with Spells and Concentration. i assume it worked there because there are resources which correspond to monster being Legendary, or to Spell Duration (resource.duration) having word (.contains) "Concentration":

Concentration: {#if resource.duration}{#if resource.duration.contains("Concentration")}true{#else}false{/if}{/if}

image
and now i have a handy checkbox here which i can use for sorting Dataview queries, for example

What I would like to have is

separate resources for Mythic Actions, Lair Actions and Regional Effects. that would be the perfect solution, but if there is any workaround w/o adding them as separate resources, i'd still be more than happy

I've tried:

let's take only Mythic Actions, so not to distract on Lair and Regional (they basically have the same structure):

Mythic: {#if resource.legendary}{#if resource.legendary.contains("mythic")}true{#else}false{/if}{/if}

this is essentially what i tried in monster template. i tried different variations, such as "Mythic", "Mythic Actions", "Mythic_Encounter", same for other ones (since, from what i saw in QuteMonster.java, they belong to resource.legendary? not sure), but that did not work. i mean, it did add those lines, but, for example, Tromokratis, a creature with Mythic Actions, had unmarked checkbox (false) which is obviously not true, hence i did something wrong or it's just that resource.legendary does not even have "mythic" as a word there. can't wrap my head around that, and i might be missing some information i did not find in docs

sorry if my request is poorly phrased because i'm not that familiar with coding overall

@vkhatuntsevv vkhatuntsevv added the enhancement New feature or request label Nov 7, 2024
@ebullient
Copy link
Owner

You did great. This is clear. =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants