- Jun 6, 2020
- Reaction score
- First Language
- Primarily Uses
Thanks for the suggestions. Weirdly enough, the problem wasn't with making it go away when you gain MP - that was easy and works. The problem was making it block any MP gain unless it goes away at the same time. There's no such thing as "at the same time". Damage is processed first, followed by effects in the order they are defined. If you set damage to MP Recovery and also add a remove state effect, the state would block the MP Recovery even though it's set to be removed immediately afterwards. If you didn't set damage at all and instead added a Remove State effect followed by a Recover MP effect, it would've probably worked, but that's a confusing state of affairs in my opinion.Well a work around for us would be to just make every action in the game, which heals mp, also remove the buff.
(pretty much how death should have worked. leave the state removal to us, where we have to manually pick which states get removed from death, rather than it defaulting to removal of all states)
If this wouldnt work for any reason, is it possible to make an adjustment, so manual removal is possible?
EDIT: forgot MP regeneration, which would require an immunity, but doesnt quite work properly this way. (unless you put that in the spells description)
So MP restoration items/abilities naturally remove the state, and the MP regen has an immunity.
So I just dropped the idea altogether. You can still set it not to automatically remove the state when you gain MP, but then the result is that you have more than 0 MP yet still have the state.
Am I the only one who finds those settings to be extremely user-unfriendly?
Anyway, I would expect the default draw option code to be sufficient for this option, since my plugin doesn't change anything about how the option is drawn. I could be wrong though.
Similarly, I don't change anything about how options process the OK button, so likely the default Process OK Code is also sufficient. At most you might need to substitute in
ConfigManager.autoBattlesomewhere in there.
Set Make Option Code to this code: