Hello again,
I've wanted to make a state that deals a flat amount of damage to whoever has it when they take any damage. The issue is that I couldn't figure out a way to make a state activate on every instance of damage. The closest thing I've managed to make is this(which isn't all that close):
If I'm not mistaken, what this does is make the afflicted actor take 1 damage whenever they take damage higher than 0 when hit by a skill. What it doesn't do is to account for skills that apply multiple instances of damage. On top of that, the damage popup only displays the 1 damage caused by the state and not the damage that is applied by the skill itself.
Is there any way to make it so that this state activates for each instance of damage? If that is not possible, I'm willing to settle for the second effect, but how would I fix the popup issue?
Thanks in advance for all the help!
I've wanted to make a state that deals a flat amount of damage to whoever has it when they take any damage. The issue is that I couldn't figure out a way to make a state activate on every instance of damage. The closest thing I've managed to make is this(which isn't all that close):
JavaScript:
<Custom Respond Effect>
if (value>0) {
target.gainHp(-1 );
}
</Custom Respond Effect>
If I'm not mistaken, what this does is make the afflicted actor take 1 damage whenever they take damage higher than 0 when hit by a skill. What it doesn't do is to account for skills that apply multiple instances of damage. On top of that, the damage popup only displays the 1 damage caused by the state and not the damage that is applied by the skill itself.
Is there any way to make it so that this state activates for each instance of damage? If that is not possible, I'm willing to settle for the second effect, but how would I fix the popup issue?
Thanks in advance for all the help!