Elin
33 ratings
CustomAI
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
189.987 KB
13 Apr @ 6:54pm
7 Sep @ 1:08pm
8 Change Notes ( view )

Subscribe to download
CustomAI

Description
Based on AnnaBannana's classic system, CustomAI allows you to create custom combat AIs for party members by writing lists of instructions. Middle-click on a party member and choose "Edit CustomAI" to open the editor interface.

=Basics=
* Each instruction in the list is checked from top to bottom, and the first one with a valid condition is executed.
* By default, the action will be used on the pet's current enemy. If, for example, you want a healing spell to be cast on you when your health is low, be sure to tick the "Entity=Target" box so that the entity ("Player") gets healed and not the enemy.
* You can use "And" to check multiple conditions before taking a specific action. (For example, checking the pet's MP and the target's distance before casting a touch spell.)
* The "▲" and "▼" buttons move instructions up and down in the list. "-" deletes an instruction from the list, and "+" adds a new one. If you delete all instructions, the pet will go back to the vanilla combat AI.
* "Ally" can target any party member, including you and your pet. (Also, note that the specific party member is not preserved across multiple combined "Ally" instructions, e.g. "Ally HP = 100%: And", "Ally MP = 100%: Holy Veil" would trigger if any party member is at full HP and any party member is at full MP, not just if one single party member is both at full HP and full MP.)
* HP, MP, and SP can use a specific number or a percentage. For example, you can check if a pet has at least 10 MP, or if they're below 50% HP.
* Summons uses a specific number, but as a special case it can also use "100%" to mean the entity's summon cap.
* Status uses the alias of a condition, but name and name_JP will also work. (A list of aliases can be found here: https://docs.google.com/spreadsheets/d/16-LkHtVqjuN9U0rripjBn-nYwyqqSGg_/edit?gid=2127729747#gid=2127729747 ) In addition, Status can use "Spiky" and "SuicideBomb" to check for the presence of the Spiky feat and the Suicide Bomb special action, respectively, as well as "Haste" and "Slow" to check for the presence of those statuses (even though internally both spells use the same condition).

=Planned Future Updates=
* Fix checking for "100%" with Summons, since it's currently bugged.
* Add a "Random" condition, based on the "Percent Chance" condition added to Custom-GX by JianmengYu.
* Add an import/export system.
* Open the editor interface via dialogue option instead of middle-clicking.

=Other Notes=
* I don't intend to recreate AnnaBannana's ability teaching system. That should be a separate Elin mod.
* This mod won't change vanilla game mechanics. For example, pets with the Blind status still move in a random direction, and pets with the Fear status still won't move into melee range of their target.
* Make sure that YK Framework is above this mod in the load order! (You can rearrange your mods' load order in the Mod Viewer accessed from the title screen.)
* Source: https://github.com/air1068/CustomAI
20 Comments
Saber 27 Aug @ 6:33pm 
Wish we could set actions for party members. I'd like my party members to heal/buff each other.
Theocratical Goblin 18 Aug @ 11:07am 
Using 100% in summons gives a formatting error
Theocratical Goblin 17 Aug @ 1:08pm 
For ease of use we should be able to reorder conditions
LaderN 2 Aug @ 6:20am 
hey bro, let update use spell for party member plz.
thursday64  [author] 24 Jun @ 8:40am 
@Fylu02: As a rule, NPCs only get passive benefits from gods. For example, Maiden of Blessings 『Kinu』 can't use Kizuami's Trick. If someone made a mod that adds faith special actions to pets, then they'd be available for use in CustomAI.
Fylu02 14 Jun @ 3:44am 
First of all, great mod, the current companion AIs leave a lot to be desired and this mod is a godsent.
Now, I do have a question I have ran into. Namely, the abilities you, or your followers get from Faith do not show up on the custom AI configuration. So I can't, for example tell my black angel to use Lulwys Posession under certain circumstances.

So I am wondering if:
1. this is suppowed to be like this or if theres something wrong on my end?
2. (if the answe to 1 is yes) this is simply a restriction of how these abilities are coded into the game, or if it's possible/theres any plans to make them available in the future.
3. the companions are still able to use these abilities on their own accord, or if the custom AI fully overwrites any and all behavior, making anything not specified in their custom AI just impossible for them to use (and subsequentely making abilities that do not show up in the Custom AI configuration impossible to use)
thursday64  [author] 12 Jun @ 8:21pm 
@Modesto3D: Specifically, this mod is based on the "customizable AI system" that she created for Elona Custom in 2015.
Modesto3D 10 Jun @ 7:10pm 
Hi, you mention AnnaBanna mod but that is not in the workshop ?
Phear 22 May @ 4:21pm 
I wonder if there is a way to make a specific spell be cast on the entire party.
薄荷嘎嘣脆 14 May @ 1:40pm 
看起来很有用, 是否能自定义翻译文本呢?