Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Kread's AI Packages (Cross-engine), Stupid bosses are too annoying.
Kread-EX
post May 10 2010, 05:46 AM
Post #1


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Kread's AI Packages


Version: 1.2

Author: Kread-EX

Release Date: 9/11/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
DDL

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.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
crazydragon
post Sep 25 2010, 10:48 AM
Post #2



Group Icon

Group: Member
Posts: 3
Type: None
RM Skill: Undisclosed




Ah I see. That makes sense : P. Unfortunately when I tried this, I still received the same error. It now reads like this=

$game_troop.enemies[1].package = :wild

My troop only has 1 enemy so this should be the correct number, right? I've tried it with the packages that work with ATB (healy and support)
and still received the same error. Just to make sure, I'm supposed to be calling this from "Script..." under "Advanced" from the third tab in
Event Commands, right?

Thanks for the support, by the way.
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- Kread-EX   Kread's AI Packages (Cross-engine)   May 10 2010, 05:46 AM
- - Shanghai   This is quite the awesome cross engine script you...   May 10 2010, 09:20 AM
- - AresWarrior   wow Kread-X you are an awesome scripter! i mig...   May 10 2010, 06:41 PM
- - crazydragon   Is this script incompatible with Melody? Always g...   Sep 24 2010, 05:39 PM
- - Kread-EX   I don't experience any error with Melody... Pl...   Sep 24 2010, 10:32 PM
|- - crazydragon   QUOTE (Kread-EX @ Sep 24 2010, 11:32...   Sep 25 2010, 07:28 AM
- - joey101   QUOTE (crazydragon @ Sep 24 2010, 06:39 P...   Sep 25 2010, 04:02 AM
- - Kread-EX   For your error during the script call, it's be...   Sep 25 2010, 10:21 AM
- - Kread-EX   No, with only 1 enemy, the correct number is 0. ^^...   Sep 25 2010, 11:02 AM
- - XaineC   I get an error with Wild enemies: "Script ...   Nov 8 2010, 07:43 PM
- - Kread-EX   Oh, I completely forgot to take strings into consi...   Nov 8 2010, 11:15 PM
- - Bigace   Im getting a QUOTE Script 'Kread's AI Pack...   Nov 8 2010, 11:39 PM
- - Kread-EX   Typo. Forgot to close the parenthesis.   Nov 8 2010, 11:42 PM
|- - Bigace   QUOTE (Kread-EX @ Nov 9 2010, 02:42 ...   Nov 8 2010, 11:50 PM
- - XaineC   Oh no! The site with the script is down! T...   Nov 9 2010, 11:20 AM
- - Kread-EX   Well, if Pockethouse is down, go to Gate of Babylo...   Nov 9 2010, 01:08 PM
- - finalholylight   Link died,please fix the link,I need this script,t...   Apr 17 2011, 11:05 PM
- - Kread-EX   I've put the code directly in the first post. ...   Apr 18 2011, 01:58 AM
|- - wsensor   QUOTE (Kread-EX @ Apr 18 2011, 05:58...   Apr 27 2011, 11:13 PM
- - Kread-EX   No, this system only applies to enemies. It's ...   Apr 28 2011, 01:10 AM
|- - wsensor   QUOTE (Kread-EX @ Apr 28 2011, 05:10...   May 9 2011, 09:56 AM
- - Kread-EX   A learning AI would require a tremendous amount of...   May 9 2011, 10:36 AM
|- - wsensor   QUOTE (Kread-EX @ May 9 2011, 02:36 ...   May 9 2011, 11:17 AM
- - Ehibika   Hello Kread-EX, I am having some problems with thi...   Jun 20 2011, 03:42 PM
- - Kread-EX   For some reason, all "&" symbols bec...   Jun 21 2011, 12:03 AM
|- - Moonpearl   This is not a script I'm going to be using per...   Jun 21 2011, 12:19 AM
- - Ehibika   Hello again Kread-EX I should have mentioned this ...   Aug 13 2011, 01:41 PM
- - nohmaan   Is the link not working again?   Sep 5 2011, 03:25 PM
- - Kread-EX   I have received a few angry PMs about the links. Y...   Dec 4 2011, 12:26 PM
- - goldenryu9292   I'm getting an error on line 359 with the heal...   Dec 19 2011, 03:02 PM
- - vvalkingman   I know this is necroposting and that I will surely...   May 9 2012, 11:00 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 05:29 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker