A.I script that takes stats into consideration

Is there an A.I. script that sees which actor has the highest/lowest of a certain stat and let enemies change there attacks based on that?

I want to use this in combination with skills that lower/raise the users stats to make enemies react intelligently to the users skills, and allow for more in-depth planning and strategy

Edit: states too, because that's what im using for buffs so i can use Lunatic destruction instead of making a tone of common events
Do you mean something like this?

http://forums.rpgmakerweb.com/index.php?/topic/31138-euphoria-threat-system/
no. Because there will be times in the game when there will only be one actor, and it doesnt allow for dynamic interactions were enemies intellegently react/interact with the players choicesThank you for trying to help though

Edit: nevermind. Remembered about this

http://forums.rpgmakerweb.com/index.php?/topic/36877-archeias-advanced-ai-conditions/?fromsearch=1

Original thread: https://forums.rpgmakerweb.com/threads/a-i-script-that-takes-stats-into-consideration.44400/