DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
839
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
 
Last edited by a moderator:

silvestro673

Veteran
Veteran
Joined
Apr 6, 2014
Messages
53
Reaction score
3
First Language
english
Primarily Uses
hp% param <= 50%: SKILL 5, Lowest HP%  (skill 5 is heal 1 ally)


to my understanding, if 1 ally has <=50% health, then cast heal on lowest health ally.


tested - proven it.


now what if say a monster has some form of affinity rage (sees one of the troop is below 50%) and so he uses a strong special attack in attempt to quickly win the fight.


the problem i face when trying to create it is that the special attack, attacks party member(s) whereas the troop members health is below 50%


using


hp% param <= 50%: SKILL 6, Lowest HP%  (skill 6 is rage attack 1 enemy)


this would look for a party member's hp to be below 50% then attack the lowest hp party member.


if i change the rage attack to 1 ally, the monster will attack the lowest hp troop member when a troop is below 50% hp.


so, is there a plugin that allows to check troops health then rage attack a party member?
 

Latest Threads

Latest Posts

Latest Profile Posts

Just for the record you CAN use the "Exclude unused files" successfully to trim a project down seriously even if you're doing calls to various assets via plugins and such. BUT you need to do a full playtest of pretty much every option to ensure you did get every one of those other assets added in. Then I dumped the assets into a fresh copy of the project and yay it was like 400 Meg......
party time.png
If you've played Knight Shift Chapter 1 this image'll mean something to you. If not, that's also fine!
Here's a medical question for ya: Why do I start lightly coughing after I drink coffee?
Well, someone "reviewed" my game. Didn't credit me anywhere in the video and spent 2 minutes insulting it. Going to ignore that and move on.
To cut down on map lag, I've been researching how to implement a lighting layer as a single map overlay instead of a bunch of individual lights. Hopefully I'll have a screenshot soon!

Forum statistics

Threads
117,266
Messages
1,105,963
Members
153,441
Latest member
19TaTo94
Top