- Joined
- Apr 13, 2013
- Messages
- 694
- Reaction score
- 101
- First Language
- French
- Primarily Uses
- RMMV
I've been bashing my head on this problem for quite a while now, trying to do various solutions like -1 variable everytime an enemy dies, unfortunately due to Yanfly methods, the variable is not lowered whenever an enemy kill itself due to recoil from a state or skill used so i'm forced to use troop size.
I'm trying to remove a state if enemy size is at 1, here what l got so far:
<Custom React Effect>
if ($gameTroop.aliveMembers.length === 1) {
target.removeState(605); }
</Custom React Effect>
The effect work fine without the condition, as soon as the enemy with the state is hit, the state is removed. However it doesn't work with that condition no matter what l do.
The plugin is Yanfly's BuffsStates Core
I'm trying to remove a state if enemy size is at 1, here what l got so far:
<Custom React Effect>
if ($gameTroop.aliveMembers.length === 1) {
target.removeState(605); }
</Custom React Effect>
The effect work fine without the condition, as soon as the enemy with the state is hit, the state is removed. However it doesn't work with that condition no matter what l do.
The plugin is Yanfly's BuffsStates Core

