YEP passive states. MP kill problem?

coticka

Veteran
Veteran
Joined
May 30, 2015
Messages
68
Reaction score
8
First Language
English
Primarily Uses
RMMV
I've set the actors to have state 1 (death) as a passive state.
And in the state itself, I have-
<Custom Passive Condition>

if (user.mp / user.mmp <= 0.0) {

condition = true;

} else {

condition = false;

}
Which works as intended. The strange thing is that actors who are MP downed by enemies cannot be revived through any means. Only when you inflict the state yourself through forcing 0 MP (like an item) can they be revived. Which is strange. Any ideas why this is? Or something I missed?
 

glaphen

Veteran
Veteran
Joined
Jan 13, 2019
Messages
286
Reaction score
104
First Language
English
Primarily Uses
RMMV
Auto passive states can never be removed by any means if set to actors, ect, only equipment passives when removing equipment. Instead try making a passive that adds death when at 0 mp or something.

Actually I just realized what you wanted but when I test it myself it works perfectly, I just made attack do MP damage and change potions to heal MP and target dead allies making state 1 a global state with that exact code only, so not sure what your problem is, other plugin maybe but I tried with 150+ so. Even works with healing, you are trying to revive through health or mana increases and not remove state right?
 
Last edited:

coticka

Veteran
Veteran
Joined
May 30, 2015
Messages
68
Reaction score
8
First Language
English
Primarily Uses
RMMV
Ugh. Yep. It was Victor's ctb that was making this happen. When turned off it works as intended. That's annoying but I guess I'll look for another work around. Not sure what could be making it interact like that though. And unfortunately Leocode's auto states plugin just returns an error for 'invalid left-hand side in assignment'. So oh well. >_>
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Kes
I have just stepped down from being a Mod, so please don't send me any more pm's with Mod questions. Thanks
The laptop I've had for almost 3 years has blue screened and is stuck on a boot loop. Can't wait to make games on nothing!
Made a brief video showcasing early game play... Got a copyright claim by BIG UP! (https://big-up.style/) for using music I bought from here (Future Steam Punk Pack). Now I wonder if I should strip any purchased music from here out of my game. :LZSskeptic:
Cleaned character animation and new room


I'm not sure if I should open a thread for this in games in development..
It's weird I actually have MORE work to do when stuck at home than before.

Forum statistics

Threads
95,475
Messages
929,439
Members
125,717
Latest member
Schiraz
Top