Enemy AI Design

Hi, I've been reading your post for a while and trying to figure out how you do it. precisely I would like the ai to give priority to the element to which it is weak, e.g. water versus fire. And I think the only solution is by applying a state but I can't figure out how, can you help me?
Hi, I've been reading your post for a while and trying to figure out how you do it. precisely I would like the ai to give priority to the element to which it is weak, e.g. water versus fire. And I think the only solution is by applying a state but I can't figure out how, can you help me?
Made a giant common event that tracks everyone's stats and how the battle is going. This is used to apply the hidden status effects: Fearful, Terrified, and Arrogant. (spirit is the most weighted stat) (this system also affects the player's portraits)

Most enemies will have a chance to "Panic" if terrified, which not only wastes their turn, but also lowers their stats, further deepening their terror. This can be removed if their side begins winning at overwhelming odds so Arrogance is applied. (this usually only happens when someone goes down or a bunch of status effects get applied to the opposition)

Made another giant common event that handles temperature, humidity, light, clutter and realism. As well made all areas in the game account for ceilings and footing. (narrow hallways have a reduced chance to dodge, while ceilings reduce the stats of flying enemies, etc)

There's a lot more stuff, such as most enemies having a chance to waste their turn if they're afflicted with poison, but this post is long enough as is. If any of these ideas interest you, just steal em. Power to the game make.
Made a giant common event that tracks everyone's stats and how the battle is going. This is used to apply the hidden status effects: Fearful, Terrified, and Arrogant. (spirit is the most weighted stat) (this system also affects the player's portraits)

Most enemies will have a chance to "Panic" if terrified, which not only wastes their turn, but also lowers their stats, further deepening their terror. This can be removed if their side begins winning at overwhelming odds so Arrogance is applied. (this usually only happens when someone goes down or a bunch of status effects get applied to the opposition)

Made another giant common event that handles temperature, humidity, light, clutter and realism. As well made all areas in the game account for ceilings and footing. (narrow hallways have a reduced chance to dodge, while ceilings reduce the stats of flying enemies, etc)

There's a lot more stuff, such as most enemies having a chance to waste their turn if they're afflicted with poison, but this post is long enough as is. If any of these ideas interest you, just steal em. Power to the game make.
Thank you, unfortunately, but my problem is that I can't make the enemy understand who to attack first.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-ai-design.124200/