- Joined
- Jul 27, 2022
- Messages
- 13
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
Hello! I'm using Yanfly Engine Plugins for my project, including Battle AI Core.
So I am trying to set a series of skills for my enemies, I want an elemental mage to check two conditions.
1.) Is there an actor with a weakness to Fire?
2.) Are one of the Mage's allies unaffected by State 204?
If yes, cast EnFire on the ally with the highest ATK.
But I am stumped on how to write this, I'm no good at Javascript yet, but I am trying. I just am unsure how to write it out where it's checking the conditions of two separate users at the same time.
Edited conditions for clarity.
So I am trying to set a series of skills for my enemies, I want an elemental mage to check two conditions.
1.) Is there an actor with a weakness to Fire?
2.) Are one of the Mage's allies unaffected by State 204?
If yes, cast EnFire on the ally with the highest ATK.
But I am stumped on how to write this, I'm no good at Javascript yet, but I am trying. I just am unsure how to write it out where it's checking the conditions of two separate users at the same time.
Edited conditions for clarity.
Last edited: