Well, the situation is the next, i'm trying to do a rpg game with tableboard system, so i'm using random values etc, making the most part in a common event, the problem is the next part, I used the next code:
$gameTroop.members()[BattleManager._action._targetIndex].gainHp(-$gameVariables.value(4));
The Variable number 4 is basically the damage i'm doing, the code basically quit the enemy HP BUT in the moment the enemy have 0 HP is not able to attack and be targeted (That is nice) but still the enemy avatar on the screen, maybe because i'm quitting him the hp and i'm not killing it. I want to know what i need to make his avatar dissapear on the screen in the moment when he has 0 HP
I tried giving him the death condition or giving him hp and quitting him it in a battle event but still not working. I literally made this account for this situation XD
$gameTroop.members()[BattleManager._action._targetIndex].gainHp(-$gameVariables.value(4));
The Variable number 4 is basically the damage i'm doing, the code basically quit the enemy HP BUT in the moment the enemy have 0 HP is not able to attack and be targeted (That is nice) but still the enemy avatar on the screen, maybe because i'm quitting him the hp and i'm not killing it. I want to know what i need to make his avatar dissapear on the screen in the moment when he has 0 HP
I tried giving him the death condition or giving him hp and quitting him it in a battle event but still not working. I literally made this account for this situation XD