- Joined
- Sep 26, 2019
- Messages
- 41
- Reaction score
- 14
- First Language
- German
- Primarily Uses
- RMMV
i want to create a state that when the affected actor dies damages only enemies who are affected by a certain state.
i used this so far
but it showes the animation on every enemy and i dont know how i can specify it to the certain state affected enemies.
i used this so far
Code:
if (target.hp <= 0) {
var enemies = origin.opponentsUnit().aliveMembers();
for (var i = 0; i < enemies.length; ++i) {
var enemy = enemies[i];
enemy.startAnimation(107);
}
}
