YEP_SkillCore won't apply KO state if YEP_BattleEngineCore exists

ZServ

Veteran
Veteran
Joined
Jun 16, 2014
Messages
260
Reaction score
71
Primarily Uses
The title pretty much covers things.

Making a skill that kills the user, but heals their allies to full HP. Using YEP_SkillCore (Found here) to apply the KO state like so:

Code:
<Pre-Damage Eval>
user.addState(1);
</Pre-Damage Eval>
Works fine, until the YEP_BattleEngineCore (found over here) is enabled. Then, it will no longer apply the state. Other states will still be added, and as far as I can tell, the rest of the plugin works flawlessly. Just can't apply that particular state. Plugins are in the proper order, and I feel like I'm missing something simple here.

Any ideas?
 

Llareian

Jack of All Trades, Master of None
Veteran
Joined
Jan 26, 2017
Messages
604
Reaction score
1,421
First Language
English
Primarily Uses
RMMV
I played around with this a bit and here's what I came up with. Battle Engine Core adds a feature that applies "immortal states" during an action, to allow multiple-hit skills to make all hits prior to the target dying. It applies the "immortal state" to the user as well, and applying KO state to an immortal battler does nothing. Note however that this "immortal state" is coded into the Yanfly Engine Battle Engine Core, and is NOT related to the immortal state in the database.

You need to change your skill to say this:
Code:
<Pre-Damage Eval>
user.removeImmortal();
user.addState(1);
</Pre-Damage Eval>
That utilizes the YEP script for removing the YEP "immortal state".
 

ZServ

Veteran
Veteran
Joined
Jun 16, 2014
Messages
260
Reaction score
71
Primarily Uses
Ah! Thank you! That works splendidly. Plus the extra explanation helps me understand why this situation came up. Many thanks to you!~
 

Annastasija

Villager
Member
Joined
Apr 23, 2017
Messages
25
Reaction score
12
First Language
English
Primarily Uses
RMMV
I am having a similar issue.. is there a way tag enemies so the immortal tag doesn't apply to them ever?
 

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

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,855
Messages
1,017,007
Members
137,563
Latest member
MinyakaAeon
Top