Author Topic: Searching AI scripter  (Read 1625 times)

Offline cnotsch

  • Posts: 85
  • Cookies: 3
Searching AI scripter
« on: September 14, 2008, 09:02:38 AM »
Hi,
I'm searching an AI scripter for my new ATM mod.
An interface wich allows the AI to select the torpedoes in store.
If anyone is interested...

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Searching AI scripter
« Reply #1 on: September 14, 2008, 09:56:15 AM »
ATM?

Currently, the AI will choose the best Torpedo it has, for a specific range if I remember correctly.

Also, do you mean you can choose what torpedoes an AI ship has, or that you want a programatic interface that the AI can use to pick a torpedo from all the torpedoes (or a selection thereof) installed?
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline cnotsch

  • Posts: 85
  • Cookies: 3
Re: Searching AI scripter
« Reply #2 on: September 14, 2008, 12:02:54 PM »
I assume you know the currently released version of my ATM (Advanced Torpedo Manager - mod).
I've completely redone this mod and part of the new functions is that it also works for AI-ships.
So i wanted to add an AI-interface that gives the AI the possibility to choose frome the stored torpedoes as well.

Edit: ATM: http://bridgecommander.filefront.com/file/;90757

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Searching AI scripter
« Reply #3 on: September 14, 2008, 02:00:56 PM »
I'm not.

From my experience with my More Than Four Torpedoes mod, I can tell you that you either need to override the section that picks a torpedo, or (ab)use the current system. I chose the latter. Basicly, you set your own torpedoes for the ship, and let the AI do the rest.

For other actions (I assume you also do something like allowing to teleport torpedoes?) you will have to write extra components that can be "plugged into" new AI (that can be based on the existing AI). But will be far more difficult.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.