Kread's AI Packages
#1
Kread's AI Packages

Version: 1.1

Author: Kread-EX

Release Date: 10/05/2010


Introduction
This script provides pre-programmed AI Packages, in order to make your life easier when you want to create intelligent enemies. Note that this is only a tool, meant to be used in conjunction with battle events, and doesn't dispense the developper to put a little effort in designing the enemies. Misuse of this script can result in horribly overpowered monsters. Warning given. Although developped for XP, this script is cross-engine and will adapt itself to RMVX.

Instructions
There are 5 provided Packages:
Healy: Enemies using this AI package will try to heal and cure as much as possible, and only if needed. Only if healing is useless, the default AI will resume.
Protect: Enemies using this package will firstly try to buff themselves, then heal, then debuff the party. If nothing of this can work, the default AI will resume.
Support: This package doesn't give any priority. The character will just spam support skills with 0 power. If none of the skills can work, the default AI will resume. I recommand to give a rating of 1 to support skills with this package, and a high rating to attack skills, so the default AI won't try to use ineffective skills.
Wild: Then again, this package doesn't give priority. The characters will just calculate the average damage caused by all their attacks and always select the most damaging.
Balanced: No priorities again, and no orientation either. Basically, this package choose a random skill but only if it works and against a acceptable target. Best used in conjunction with Battle Events.

In the beginning of the script, you have a few constants named AIHealy, AIProtect, AISupport, AIWild and AIBalanced. Very simple, just put in here the IDs of enemies using the selected package, separated by commas.
For VX users: The ever-so-convenient note boxes are here. Just add one of these in the box.
<package: healy>
<package: protect>
<package: support>
<package: wild>
<package: balanced>

If you need to change a package during a battle, use a Call Script command:
$game_troop.enemies[member_index].package = :healy, :protect, :support, :wild or :balanced.

Script
Just here.

Compatibility
Should work with all Battle systems, except TBS. Might clash with Tankentai, but I'm not sure.

Terms and Conditions
You are free to adapt this work to suit your needs.
You can use it for both non-commercial and commercial purposes. Credit is appreciated.
Reply }




Users browsing this thread: 2 Guest(s)