The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: fenix_fyr85 on December 16, 2008, 09:53:05 PM

Title: Better Actor AI?
Post by: fenix_fyr85 on December 16, 2008, 09:53:05 PM
I have a character in my game controlled by the default RMVX AI via the checkbox in the character tab but the problem is the AI seems so far to be pretty random.  For instance, the ai character has a heal and a rez but won't use either one even when other characters are dying and dead.  Instead, it uses all its mana on damage spells then when he runs out the party dies.  (hes a higher lvl character and the only one with a heal or rez at a certain point in game) Anyways, I was wondering is there a relatively easy way to add a little more complexity to the default AI?
Title: Re: Better Actor AI?
Post by: HowlingWinds on December 17, 2008, 05:29:43 AM
Hmm, don't think there is any direct way to change priority. Depends really, is your healer a hybrid? as in are they a damage dealing mage and a healer? When i usually make characters as healers (when you can't control them) I do a pure healer set up. Meaning, all they get are healing spells and raise. Sometimes I go to the extent of not even giving them a weapon. If you are going for the mix, then let me know and I think I have an alternitive, just requires some elbow work.
Title: Re: Better Actor AI?
Post by: fenix_fyr85 on December 17, 2008, 04:36:04 PM
The character is a hybrid, but I tried removing all of his damage spells and he still wouldn't heal or rez, but hit for almost nothing with his staff instead every turn.  If you have a way to get a pure healing class to heal during automatic battle, that would be great too.  I don't mind changing him since his class isn't all that important to the storyline anyways.
Title: Re: Better Actor AI?
Post by: HowlingWinds on December 17, 2008, 06:46:53 PM
Alright, so seeing as this character only likes to deal damage, then it looks like we'll have to make damaging skills that also heals your party. This can be done easily by first going into common events, make a new one and name it what you are going to name the skill (Mine was Drainga) Now all you have to add is a simple event, which is "Change HP" and you set it to how much you want the skill to heal your party.

[spoiler]
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi313.photobucket.com%2Falbums%2Fll387%2FFeliusfeefee%2Fdrainga.png&hash=aef4f442886c836502f35d0ee30c7ad8b24ba52c)
[/spoiler]

Now, go to the skills tab, and make the skill with all the damaging properties you want, then on the common event part, just choose the common event that you made. So when the skill goes off, it will damage the enemy but will heal your whole party. The only thing is the healing won't show up in the battle log.

[spoiler]
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi313.photobucket.com%2Falbums%2Fll387%2FFeliusfeefee%2FDrainga2.png&hash=e00bf2b578c9b093d3a77eecb584b37e05980665)
[/spoiler]

Now if this character is staying around for awhile, then you'll need to change the common event so that way the healing isn't dead set in stone, as your characters will quickly out grow it and the healer will have trouble keeping up. It's pretty much just simple variable settings and a little math.

[spoiler]
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi313.photobucket.com%2Falbums%2Fll387%2FFeliusfeefee%2FDrainga3.png&hash=566d5af75fec10bbdd26e41f834b3e2026f0f647)
[/spoiler]

In order do the "Spirit Impact" make sure you check this thread as there are some errors in the VX script that will make it so no matter what you set a variable = a characters stat, it will always = 0 or give you an error message http://rmrk.net/index.php/topic,25243.0.html
Title: Re: Better Actor AI?
Post by: Grafikal on December 17, 2008, 07:22:21 PM
Lol, very nice.
Title: Re: Better Actor AI?
Post by: fenix_fyr85 on December 17, 2008, 11:19:27 PM
Great idea, HowlingWinds.  It actually works out better this way then any of the things I had in mind.  Thank you!