With YEP Battle Ai Core engine I'm not sure how I would achieve to do what. It's if the enemies tries to use 'X' skill on my male character it works, but if the enemy tries to use the same 'X' skill it would fail if used on a female and make the AI smart enough to ignore the female being a possible target and not attempt to use this skill on the female character.
MV Yep Battle AI core
Javascript/Plugin SupportHow does the game know who is male and who is female? Is it based on actor ID, or a state, or something else?
I haven't think much about it, but it sounds like it would probably make more sense if it was a state or something similar. Something to detect if it's Male or Female character.
In that case I'd first recommend a plugin that can make states stay on battlers even when they're dead. I think YEP Auto Passive States should work here:
www.yanfly.moe
Make sure your Yanfly plugins are in the recommended order, too (Passive after A.I.):
www.yanfly.moe
Then you can create states for each gender and assign them as passive states by putting a notetag on each actor, e.g.
Now that they have their states assigned, it should be easy to have the A.I. plugin check for them, e.g.
I haven't tested this, but hopefully it'll work! 😮💨
Auto Passive States (YEP) - Yanfly.moe Wiki
Category:Yanfly Engine Plugins - Yanfly.moe Wiki
Then you can create states for each gender and assign them as passive states by putting a notetag on each actor, e.g.
Code:
<Passive State: 15>
Code:
<AI Priority>
STATE === State 15: Skill 20, Random
</AI Priority>
Could it work with Variables, let's say if you create a Variables for Male and another Variable for Female?
Is this a male or female chose bar?
Original thread: https://forums.rpgmakerweb.com/threads/yep-battle-ai-core.131054/