MV/MZ Help with Alistair's AP Enemy Control

Hi! I've been fiddling with Alistair's Enemy Control plugin and I was needing help with certain conditions. Right now I have an enemy who scans if Actors have been buffed. I know that the script call for buffs is paramBuffRate(ID of Stat), but how do I phrase the condition so it checks for all stats? Or should I put several paramBuffRate for each stat?
I know that the script call for buffs is paramBuffRate(ID of Stat),
that gets you the buff rate which includes the effect of buffs, but arent limited to it and may be inaccurate if youre only looking for buffs but states also increase parameters. isBuffAffected(id) returns true/false based on if the battler has a buff to that parameter.

Or should I put several paramBuffRate for each stat?
you can, but...
how do I phrase the condition so it checks for all stats
try battler._buffs.every(buff => buff > 0)
I tried that, but this came out T-T

1769116334678.png

1769116368256.png
can you show the notetag so that I can be sure of exactky what's there? a battler's _buffs array shouldnt be undefined by then.
I took out the battler and replaced it with b. as it asks in the plugin help file, but now it just ignores that condition entirely T-T

1769183834804.png
Didn't check if your notetag is correct (it's not even completely visible), but just to make sure, did you really want to check that if every of your stats is buffed? Or if any of them are?
Hmmm, either works! I was just going from what I seen myself when digging through the script calls list, so I figured you needed to check for each stat individually.

As for the notetag, I just wanted to show the expression for checking buffs. I had used the plugin before so I know how to use the Action List notetag and the issue seems to be the expression rather than the notetag as a whole.
But I mean when checking them all individually it's a different thing to check if all of them are buffed or if at least one of them is buffed. So you use 'every' or 'some' depending on that.
the issue seems to be the expression rather than the notetag as a whole.
what i gave checks if the actor has a buff to all of their parameters. its how i interpreted:
how do I phrase the condition so it checks for all stats?
if youre not checking to see if an actor has all of their stats buffed but instead want to see if any of the parameters are buffed, then you want b._buffs.some(buff => buff > 0) rather than every
I'm so sorry I explained myself so poorly ;_; But thank you for bearing with me! It now works perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-alistairs-ap-enemy-control.182094/