So what I want to do is add certain states to all enemies at the start of any battle.
I'll be doing this via YEP_BaseTroopEvents which calls a common event on Turn 0 of every battle.
The main issue here is that I don't want every enemy to gain the same state.
Basically; All enemies gain the same state while a handful of strong enemies and all bosses gain a lesser variant of that state.
Now I need a way to distinguish boss and strong enemies from common enemies.
One way I thought of was something like this:
Script-Call:
let targets = $gameTroop.members();
targets.forEach(function(target) {
if (COLLAPSE EFFECT !== NORMAL) {
target.addState(x);
} else {
target.addState(y);
}
});
Firstly, I don't know the proper code for checking collapse effects.
Secondly, this solution does not really work for me because I also want it to affect some strong non-boss enemies.
So I need something to distinguish between boss and non-boss to add the states appropriately.
Edit: Any possible directions and alternatives are most appreciated aswell.
I'll be doing this via YEP_BaseTroopEvents which calls a common event on Turn 0 of every battle.
The main issue here is that I don't want every enemy to gain the same state.
Basically; All enemies gain the same state while a handful of strong enemies and all bosses gain a lesser variant of that state.
Now I need a way to distinguish boss and strong enemies from common enemies.
One way I thought of was something like this:
Script-Call:
let targets = $gameTroop.members();
targets.forEach(function(target) {
if (COLLAPSE EFFECT !== NORMAL) {
target.addState(x);
} else {
target.addState(y);
}
});
Firstly, I don't know the proper code for checking collapse effects.
Secondly, this solution does not really work for me because I also want it to affect some strong non-boss enemies.
So I need something to distinguish between boss and non-boss to add the states appropriately.
Edit: Any possible directions and alternatives are most appreciated aswell.