Hi, good people of the RPG Maker Forum! I've been advised I'll need a plugin for the effect I desire.
I have a State Super that alters Param MHP 150% and a State Weakened that alters Param MHP 75%. When both states are removed, the Actor's current HP stays the same numeric value. I need the Actor's current HP after the state is removed to maintain the same percentage of their new (normal) MHP as the State-affected MHP.
Example Super:
Normal MHP: 20
Super is applied. MHP: 30
Actor takes 15 damage. Current HP 15/30 (50%)
Super is removed. MHP: 20
Current HP shows 15/20
I need Current HP to be 10/20 (50%).
Example Weakened:
Normal MHP: 20
Weakened is applied. MHP: 15
Actor takes 10 damage. Current HP 5/15 (~33%)
Weakened is removed. MHP: 20
Current HP shows 5/20
I need Current HP to be 7/20 (~33%, rounded up).
I would like the plugin to automatically round up or down. If possible, I'd like 0.5 to be rounded up, and anything lower rounded down. If that isn't possible, then I'd rather have everything rounded down.
I would love to add more states like these, but I want to test things out with these two first. If the plugin could holistically include the ability to do the same things with MP and TP, that would be fantastic.
I know this is probably a big ask, but any help would be appreciated.
I have a State Super that alters Param MHP 150% and a State Weakened that alters Param MHP 75%. When both states are removed, the Actor's current HP stays the same numeric value. I need the Actor's current HP after the state is removed to maintain the same percentage of their new (normal) MHP as the State-affected MHP.
Example Super:
Normal MHP: 20
Super is applied. MHP: 30
Actor takes 15 damage. Current HP 15/30 (50%)
Super is removed. MHP: 20
Current HP shows 15/20
I need Current HP to be 10/20 (50%).
Example Weakened:
Normal MHP: 20
Weakened is applied. MHP: 15
Actor takes 10 damage. Current HP 5/15 (~33%)
Weakened is removed. MHP: 20
Current HP shows 5/20
I need Current HP to be 7/20 (~33%, rounded up).
I would like the plugin to automatically round up or down. If possible, I'd like 0.5 to be rounded up, and anything lower rounded down. If that isn't possible, then I'd rather have everything rounded down.
I would love to add more states like these, but I want to test things out with these two first. If the plugin could holistically include the ability to do the same things with MP and TP, that would be fantastic.
I know this is probably a big ask, but any help would be appreciated.