AI I need someone to set it

Hi all guys, I hope I can write this post and be in the right place. I'm desperate, after months of trying to set the AI of the enemies related only to the target they target. I'm creating a game to give to my best friend, trivially pokemom style where there are different elements (fire, water, etc.) which are obviously weak or strong with their respective. Unfortunately the ai can't understand these values and I'm ignorant at the programming level. If someone can fix this point upon payment that would be great. I repeat, I hope to respect the rules of the community, if not, I can delete the post.
Thank you all for your cooperation
you should post a screenshot of what you already have as the enemy action pattern, and explain what you want it to do that you haven't been able to implement yet.
The built-in attack pattern doesn't have any reference for state rate.

Unless you give battlers states that represent their elemental affinity, you'd have to use something like Yanfly's Battle AI Core to set more specific instructions.
It is my understanding that you're already using a Yanfly plugin to try to achieve that, so

I've moved this thread to Javascript/Plugin Support. Thank you.

It is my understanding that you're already using a Yanfly plugin to try to achieve that, so
Moved to: Javascript/Plugin Support
Thank you.
I finally picked up this game again. I'm trying in every way but I can't set an AI that works. I don't need the enemy to attack the lowest life character etc. but who chooses to attack a specific element only because it is stronger. Instead he always attacks the same.

Example: I have two characters, one water and the other air. The enemy is strong against air but always decides to attack water. How come? I don't understand if some plugins may not work well with something else. I also tried to make scripts to insert in the enemy's notes but still I can't make him understand which element to attack. Thanks for the support guys

Original thread: https://forums.rpgmakerweb.com/threads/ai-i-need-someone-to-set-it.155394/