Okay. I have enemies, and I have a special state (its ID is 12) which supposed to apply every time whenever enemy's HP gets below 25%.
I have found two ways to do it:
1)By battle events. It works, but I can'y o figure out how to remove this state in case whenever an enemy restores its health from 25%;
2)By common event:
Its supposed to trigger by any damaging skill, but It doesn't work somehow.
I've tried to use Yanfly's Auto Passive States plugin, but it crashes whenever it used along with other plugins, like Moghunter's Battle Hud and Graphics Changer.
I have found two ways to do it:
1)By battle events. It works, but I can'y o figure out how to remove this state in case whenever an enemy restores its health from 25%;
2)By common event:
Code:
◆Change Enemy State:Entire Troop, - Wounded
◆Control Variables:#0001 var1_8 = 0
◆Loop
◆Control Variables:#0002 var2_9 = 0
◆Control Variables:#0003 var3_10 = 0
◆Script:if ($gameTroop.members()[$gameVariables.value(1)])
: :{ $gameVariables.setValue(2, $gameTroop.members()[$gameVariables.value(1)].mhp);
: :$gameVariables.setValue(3, $gameTroop.members()[$gameVariables.value(1)].hp); }
◆Control Variables:#0002 var2_9 /= 4
◆If:var3_10 < var2_9
◆If:var3_10 > 0
◆Script:$gameTroop.members()[$gameVariables.value(1)].addState(12)
◆
:End
◆
:End
◆Control Variables:#0001 var1_8 += 1
◆If:var1_8 ≥ 8
◆Break Loop
◆
:End
◆
:Repeat Above
I've tried to use Yanfly's Auto Passive States plugin, but it crashes whenever it used along with other plugins, like Moghunter's Battle Hud and Graphics Changer.