So this is a problem i have been tripping over for the last couple hours because it MAKES NO SENSE...
Why is this -% mp not triggering?
The +10% hp recovery works. The MP -regen does not... I'd imagine it would work the same way as poison does, with -hp regen, so i know the function works... But why is it not working for MP??
I have even tried setting these as two different states that activate at the same time, but only the HP one ever does anything. The MP one does not...
To explain what I am trying to do:
I am running a permadeath feature where reaching 0 hp does not kill you. But what it does do, is knock you out for the remainder of the battle, in which the deathstate is removed upon battle end (this works, it also puts you at 1 hp when it does). But what CAN kill you completely is when you reach 0 mp. MP in my game is not actually MP, it's an essence of life energy that once snuffed out, the character is gone. toast, poof, no more. removed from the game. MP damage can happen in one of two ways. Special attacks and other special conditions, but also if you reach 0 hp, you take 10% mp dmg, effectively meaning you can "die" a few times, but not too many.
ANYway.. I am using yanflys auto passive states so that when you do die (0 hp), after battle you recover 10% hp, and lose 10% mp. The only way i've been able to figure out how to do this is through adding an additional state that is added with a condition of your hp being less than 2. (since removal of the knockout state places you at 1 automatically)....
ALL of this works EXCEPT THAT -10% MP!! It just refuses to go down...
All that being said though, if someone can explain to me why this mp dmg is not working, or if they have any more efficient way of doing this, please let me know. Really i just want a very minor recovery with a hit to current mp after the battle is over. That's it. If this can be done differently than the use of states, wonderful. If not, please give me some ideas here.
I already know that I could do this using a similar function i have in a parralel process checking the states of all actors mp at all times to see when they hit zero (even all that works perfectly!), but that's another always running parralel process of huge proportions, and that idea scares me.. (or should i really be scared at all? but god that's a lot of writing).
Why is this -% mp not triggering?
The +10% hp recovery works. The MP -regen does not... I'd imagine it would work the same way as poison does, with -hp regen, so i know the function works... But why is it not working for MP??
I have even tried setting these as two different states that activate at the same time, but only the HP one ever does anything. The MP one does not...
To explain what I am trying to do:
I am running a permadeath feature where reaching 0 hp does not kill you. But what it does do, is knock you out for the remainder of the battle, in which the deathstate is removed upon battle end (this works, it also puts you at 1 hp when it does). But what CAN kill you completely is when you reach 0 mp. MP in my game is not actually MP, it's an essence of life energy that once snuffed out, the character is gone. toast, poof, no more. removed from the game. MP damage can happen in one of two ways. Special attacks and other special conditions, but also if you reach 0 hp, you take 10% mp dmg, effectively meaning you can "die" a few times, but not too many.
ANYway.. I am using yanflys auto passive states so that when you do die (0 hp), after battle you recover 10% hp, and lose 10% mp. The only way i've been able to figure out how to do this is through adding an additional state that is added with a condition of your hp being less than 2. (since removal of the knockout state places you at 1 automatically)....
ALL of this works EXCEPT THAT -10% MP!! It just refuses to go down...
All that being said though, if someone can explain to me why this mp dmg is not working, or if they have any more efficient way of doing this, please let me know. Really i just want a very minor recovery with a hit to current mp after the battle is over. That's it. If this can be done differently than the use of states, wonderful. If not, please give me some ideas here.
I already know that I could do this using a similar function i have in a parralel process checking the states of all actors mp at all times to see when they hit zero (even all that works perfectly!), but that's another always running parralel process of huge proportions, and that idea scares me.. (or should i really be scared at all? but god that's a lot of writing).