DFreds / dfreds-convenient-effects

A FoundryVTT module that adds easy to use toggleable active effects for any system.
MIT License
44 stars 37 forks source link

[Feature Request] a way to make the aid spell (or similar effects) work properly when applied #318

Open SirAron111 opened 6 months ago

SirAron111 commented 6 months ago

A way to make the aid spell (or similar effects) work properly when applied.

Example. The Aid spell increases max hp which is easily done via the (system.attributes.hp.tempmax) flag in an effect

But it also adds this maximum on cast and not just change the possible max value Their doesn't seem to be a flag to trigger this in conjunction. Like a one time heal on effect applying that doesn't re apply every time the token takes damage or so. Meaning, is there a way to make a flag increase max hp while an effect is applied like (system.attributes.hp.tempmax) but also give the effects target a one time to apply trigger heel of the same value to fill the new HP maximum?

This effect could apply to not just the aid spell, but other effects that grant a temporary increase to a tokens max hp as well. (for example, I have a player fighter with an ability to bolster their life with a temp max +30 using system.attributes.hp.tempmax), but i always manually have to fill up the new expanded hit point pool with the 30 points.

thatlonelybugbear commented 6 months ago

How do you apply the Aid effect on the target? And how do you trigger the correct tempmax value change based on spell slot used?

SirAron111 commented 6 months ago

Not sure how spell slot use would work, I think the effects tie in to active effects or so dynamic active effects or so. But most other things work fine via the DF convenient effect thingy.

thatlonelybugbear commented 6 months ago

Do you use MidiQOL to transfer effects on the targets of Items?

(Actually I just saw that you opened an issue in DAE too. It can be done with DAE, so I will answer there).

SirAron111 commented 6 months ago

A ok. ye i do have midiqol. But their flags normally include their name. Maybe such a flag for an initial effect apply to heal doesn't exist. Only annoying flags that apply hp every time the hp bar is updated, causing the actor to heal when they should take dmg XD