I've googled this and asked on some of the Discords, but haven't found anything yet.
I have a state that should deal damage when it wears off. I'm using Yanfly's Absorption Barrier and Buff/States. I can run a script when it wears off to apply damage. However, the process I've seen for this has always been
This works fine for bleed or poison - anything that needs to apply directly to HP. However, the damage from the state I'm working on needs to be handled like any other external source of damage. I could write a more complex process that finds the current barrier and hp, then works out the correct numbers and applies it to both, but this seems likely to be an issue that comes up repeatedly.
Is there a method I can call to have the game process damage for me the way it normally does? That way I don't have to reinvent the wheel here and can avoid missing any other damage triggers I may have overlooked?
I have a state that should deal damage when it wears off. I'm using Yanfly's Absorption Barrier and Buff/States. I can run a script when it wears off to apply damage. However, the process I've seen for this has always been
This works fine for bleed or poison - anything that needs to apply directly to HP. However, the damage from the state I'm working on needs to be handled like any other external source of damage. I could write a more complex process that finds the current barrier and hp, then works out the correct numbers and applies it to both, but this seems likely to be an issue that comes up repeatedly.
Is there a method I can call to have the game process damage for me the way it normally does? That way I don't have to reinvent the wheel here and can avoid missing any other damage triggers I may have overlooked?