- Joined
- May 30, 2015
- Messages
- 816
- Reaction score
- 826
- First Language
- English
- Primarily Uses
By DreamX
Description
This is an extension for Battle A.I. Core by Yanfly. At the present, it allows for custom target conditions when use eval. For example, you can require that target must be of a certain class, have a certain weapon, have a certain id or anything else. As long as you know a little javascript, you can apply extra target conditions.
How To Use
Right click the script link and save as a .js file. Must be under Yanfly plugins.
* ============================================================================
* How To Use
* ============================================================================
* Use AIManager.targetCondition("x") when using an eval condition.
* Examples:
* AIManager.targetCondition("target.name() === \"Harold\"")
* AIManager.targetCondition("target.actorId() === 2")
*
* If you're using quotes in your condition, you need to escape them with \
* like I did for Harold (\"Harold\")
*
* Example of a whole ai pattern:
* <AI Priority>
* Eval user.name() === 'Bat' && AIManager.targetCondition("target.name() === \"Harold\""): Skill 25, Highest HP%
* </AI Priority>
* ============================================================================
* Terms Of Use
* ============================================================================
* Free to use and modify for commercial and noncommercial games, with credit.
* Please remember credit Yanfly as this is an extension of their Ai Core plugin.
* ============================================================================
* Credits & Thanks
* ============================================================================
* DreamX
* Thanks to Yanfly for the plugin this is an extension of.
Script
Description
This is an extension for Battle A.I. Core by Yanfly. At the present, it allows for custom target conditions when use eval. For example, you can require that target must be of a certain class, have a certain weapon, have a certain id or anything else. As long as you know a little javascript, you can apply extra target conditions.
How To Use
Right click the script link and save as a .js file. Must be under Yanfly plugins.
* ============================================================================
* How To Use
* ============================================================================
* Use AIManager.targetCondition("x") when using an eval condition.
* Examples:
* AIManager.targetCondition("target.name() === \"Harold\"")
* AIManager.targetCondition("target.actorId() === 2")
*
* If you're using quotes in your condition, you need to escape them with \
* like I did for Harold (\"Harold\")
*
* Example of a whole ai pattern:
* <AI Priority>
* Eval user.name() === 'Bat' && AIManager.targetCondition("target.name() === \"Harold\""): Skill 25, Highest HP%
* </AI Priority>
* ============================================================================
* Terms Of Use
* ============================================================================
* Free to use and modify for commercial and noncommercial games, with credit.
* Please remember credit Yanfly as this is an extension of their Ai Core plugin.
* ============================================================================
* Credits & Thanks
* ============================================================================
* DreamX
* Thanks to Yanfly for the plugin this is an extension of.
Script
Last edited by a moderator:
