So I'm trying to create two effects I call Life and Death. They're both essentially opposite effects. Life increases Max Health by 10%, Death decreases Max Health by 10%. Each has a max of 10 stacks.
They also have a special interaction. Let's say for example you apply Death to a target, but the target already has 3 stacks of Life. I want to make it so they don't exist at the same time, so Death would remove itself and the target would have 2 stacks of Life with a 20% Max Health increase. So it's not much different than an HP Buff/Debuff, but the reason I'm going for a state is because the other buffs have a rate of 20%, and since some skills scale off HP, and that would make HP buffing/debuffing faster, I found that a bit too OP. I also will be making some of the bosses immune to these so they don't get cheesed or cheese the player in return.
I do have two issues though. The formula I'm going for is an additive/subtractive percentage, and from looking at the Core Engine, I only see the option for a flat or multiplicative percentage. I'm not sure if I'm missing something or if additive's just not possible. I don't mind settling for multiplicative per se if it's not a thing, but in terms of balance, additive would be much better.
The other issue is raising the HP itself. I know how to raise the stack count, but I'm not sure how to make it update with the formula as the stacks keep going up/down.
So I'm essentially asking for help on how to make state buffs stack.
They also have a special interaction. Let's say for example you apply Death to a target, but the target already has 3 stacks of Life. I want to make it so they don't exist at the same time, so Death would remove itself and the target would have 2 stacks of Life with a 20% Max Health increase. So it's not much different than an HP Buff/Debuff, but the reason I'm going for a state is because the other buffs have a rate of 20%, and since some skills scale off HP, and that would make HP buffing/debuffing faster, I found that a bit too OP. I also will be making some of the bosses immune to these so they don't get cheesed or cheese the player in return.
I do have two issues though. The formula I'm going for is an additive/subtractive percentage, and from looking at the Core Engine, I only see the option for a flat or multiplicative percentage. I'm not sure if I'm missing something or if additive's just not possible. I don't mind settling for multiplicative per se if it's not a thing, but in terms of balance, additive would be much better.
The other issue is raising the HP itself. I know how to raise the stack count, but I'm not sure how to make it update with the formula as the stacks keep going up/down.
So I'm essentially asking for help on how to make state buffs stack.