Ambrosia Software Web Board: Combat AI Scripts - Ambrosia Software Web Board

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Combat AI Scripts

#1 User is offline   prophile 

  • A Sad Panda
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 5,717
  • Joined: 24-October 03
  • Gender:Male
  • Location:Aiur

Posted 03 January 2004 - 02:56 PM

I've got a suggestion for what each of the character's AI should do.

HECTOR: 1/2 of the time attacks the nearest enemy, 1/2 attacks his last attacker.
MELEAGER: 3/4 time attacks last attacker of the player, 1/4 his last attacker
TIMON: Heals you, then himself, then pelts his last attacker or the most damaged enemy with mystic arrows.
AETHON: Any ideas?

I want to see what people think. This is a kind of brainstorming thread and if anyone wants to put forward different ideas I'll put them in and release it in a package in the Addon Files list.

------------------
Vast__
"I'm against human cloning. Also against identical twins." -mrxak

"We don't live to work. We live to live, work is just something that we have to do to live." -Chamrin

#2 User is offline   ~vIsitor~ 

  • rEsident gUest
  • PipPipPipPip
  • Group: Members
  • Posts: 1,097
  • Joined: 18-December 03
  • Gender:Male
  • Location:The Æther Between Forums

Posted 03 January 2004 - 10:18 PM

It would be nice to do something like that but the game can only handle so many commands. I'll tell you what is done instead of your ideas and what could be done.

Quote

HECTOR: 1/2 of the time attacks the nearest enemy, 1/2 attacks his last attacker.


Generally Hector merely attacks the strangest target

However the script can be programed for Hector to attack nearest most of the time but defend you when your health goes 'wounded' or 'critical'

Quote

MELEAGER: 3/4 time attacks last attacker of the player, 1/4 his last attacker


Generally Meleger is programed to attack the nearest target while maintaining point-blank range even when he's ccritical.

However the script could be programed for Meleger to defend you when your helth is not 'fine' but to attack nearest when it is.

Quote

TIMON: Heals you, then himself, then pelts his last attacker or the most damaged enemy with mystic arrows.


Generally Timon pelts the nearest and weakest foe with mystic arrow anyway. But the 'healer' Script doesn't seem to work properly (healing enemies and shrubs).

However a good programer could work out the kinks in the 'healer' script and combine it with the normal-thus fixing the problem and meeting your ends.

Quote

AETHON: Any ideas?


Generally Aethon is given the "missle' script in which he tries to keep an optimum shooting distance for his prjectiles. However he usually ends up in impossible possisions (i.e. on top of a mountain)

It might be possible to fix the bugs with Aethon's script but you're better off giving him a pair of sharp, short swords.

(OOC Woot! First registered post!)

------------------
I am the everpresent guest-One who my never leave. Til death do I part with these forums. I am vIsitor

[This message has been edited by ~vIsitor~ (edited 01-04-2004).]
"The art of war is about legs, not arms." - General Maurice de Saxe

#3 User is offline   Theo Nean Donly 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 439
  • Joined: 27-August 00
  • Location:Out of Darkness, Out of Mind

Posted 04 January 2004 - 08:10 PM

I'm trying to remember what I had... it's been a few years.

I think I had "berserker" scripts for Hector and Meleager, basicly:
* if not critical, attack nearest enemy, else
* if user not critical, keep distance of > 5 from nearest, else
* If user's last attack > 1 square away, attack nearest, else
* attack user's last attacker

Timon's was less straight forward, as not really suitable for normal melee combat. Here's roughly what I planned for him, in this order of priority:

* If _your_ health is ____, heal (you want the average healing for low-defense characters to be almost but not quite to full. With stronger characters only heal if critical)
* If _his_ health is ____, heal
* If _party_ member's health is ____, heal
* Some sort of backpedelling for enemies closer than 2 (maybe only when attacked)
* If mana is full, mystic arrow on toughest
* If ranged weapon equiped, attack nearest

Also, Timon is the hardest but most important to level (in my opinion), so I made a seperate script to level Timon. This is much more mana-draining than the last script, and is basicly designed to steal kills. Basically, it is the same as the last script only with an added branch between health checks and backpedeling:

* If weakest enemy is critical, mystic arrow weakest

This gives Timon almost all the kills, but he will go from full mana to empty quite quickly.

As for Aethon, I've never asked him to join, but I could look into it. Over a year ago I was thinking about uploading the scripts somewhere and the ideas behind them (such as the importance of Timon as healer in fitting in with the rest of the party, assuming you have atleast Hector and Meleager). If anyone is really interested, I could probably figure something out when I get back to school. I noticed that Slayer's site doesn't have anything about scripts...and a few other things that I think it should ;P

------------------
"I don't need a plan, just a goal. The rest will follow on its own"
- MtG, "Temper"
The One And Only:
[url="http://"http://www.ambrosiasw.com/webboard/Forum5/HTML/000506.html"]~Theo Nean Donly~[/url]

[This message has been edited by Theo Nean Donly (edited 01-04-2004).]
"I don't need a plan, just a goal. The rest will follow on its own"
     - Magic: the Gathering, "Temper"

The One And Only
~Theo Nean Donly~

#4 User is offline   Talos 

  • Member
  • PipPipPipPip
  • Group: Members
  • Posts: 1,468
  • Joined: 19-June 00

Posted 05 January 2004 - 08:19 PM

Theo: submit the scripts to the add-ons section of Ambrosia's cythera site... would be a good contribution, and they'll host for free.

------------------
Bronze: the other gold metal.   | |   And so the space toaster hardened the outer layers of the doughy, ooey-gooey ancient Earth...
Bacchus Publishing: [url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/show.pl?product=evo&category=guides&display=date&file=ChroniclesByJake101.sit.hqx"]Chronicles by Jake101: the unposted chapters[/url].
Bronze: the other gold metal.   ||   And so the space toaster hardened the outer layers of the doughy, ooey-gooey ancient Earth...
Bacchus Publishing: [url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/show.pl?product=evo&category=guides&display=date&file=ChroniclesByJake101.sit.hqx"]Chronicles by Jake101: the unposted chapters[/url].

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users