YEP Battle AI Core Random Skill Pool

What I'm trying to do is, using Yanfly's Battle A.I. Core, I want that when a specific condition is met, the enemy will use any one out of a pool of skills.

So lets say I have skills X, Y and Z. I want to set up <AI Priority> such that:

<AI Priority>

(Other checks)

Always: Skill X/ Y/ Z (Any one of the skills)

(Other checks)

</AI Priority>

I believe the plugin supports only one skill per condition(s), but I may be wrong. Is this possible? If so, how?

Thanks in advance ^_^
First thing that come to my mind is to set a variable with a random value from 1-3 or whatever. Then you make 3 conditional branches for each value of the variable, each skill is used.

if var = 1 skill x is used

    else if var = 2 skill y is used

         else if var = 3 skill z is used

or something like that.
You know...this is a damn good question. I was running into a few situations where I thought: "It would be nice if one of these 3 skills were chosen at random when X condition is met".

Might be something worth inquiring about on Yanfly's main plugin thread.
@Fernyfer Ikr! It would be so helpful if this was possible. Would add more variety to the enemy's skills and not have them follow such a strict code.

I'll try asking on Yanfly's main plugin thread and see if I can get anything.
One way to do it would be to treat it like a math problem, like this would give you one of five skills at random.


Random 20%, Skill A


Random 25%, Skill B


Random 33% Skill C


Random 50% Skill D


Always Skill E


Just use that pattern for any number of skills.  Of course you won't be able to add conditions.

Original thread: https://forums.rpgmakerweb.com/threads/yep-battle-ai-core-random-skill-pool.54050/