# AI Targeting Priority Formula -1 reply

• 1
• 2

Resistance is futile, eh?

50 XP

30th July 2008

503 Posts

#1 11 years ago

I recently worked out a fairly involved formula for which ships the AI would target first, based on a number of variables (see below). I'm just wondering, is there anything I should do to edit it? It's a bit involved, so, if you want to use it, keep a calculator and some paper handy. This formula is intended primarily for FO, as that accepts numbers greater than 1 (I think). To modify this formula for A2, simply place the whole formula (except the variable to the left of the equal sign) over the result of the formula for the most threatening ship in the game (i.e. the one with the highest rating). For example, let's say your most threatening ship is a battleship with a rating of 87.65. You would divide the result of this formula for any other ship by that number (note that this number WILL vary depending on your build, and is used here only for demonstrative purposes). For vanilla up to 1.2.5 A2, the .odf command for this statistic is called intrinsicValue. I'm not sure what FO calls it, probably something similar.

Anywho, what is your opinion? Do you do it mathematically, or is your rating arbitrary? And is there anything I need to change?

Guest

I didn't make it!

0 XP

#2 11 years ago

That sir is some very nice calculations. I;ll need to study it further as up till now I have been rather arbitery with it. I like how it take manuverability into account. very nice work man.

k_merse

Evolution

50 XP

30th September 2007

637 Posts

#3 11 years ago

CB, you're sic :D This formula is brutal! But it can be very useful if someone could implement it in a modder tool ;)

A2Files Staff

46,877 XP

5th February 2005

4,275 Posts

#4 11 years ago

Have you worked out how the AI uses "intrinsicValue"? I've never looked at it before but i'm well aware personally that the AI always shoots up the smallest ships first in stock A2 (I used to use fleets of scouts to escort battleships) and battleships do have a higher intrinsicValue.

Achilles

I stole fire from the lighter!

50 XP

13th January 2003

1,596 Posts

#5 11 years ago

I dont know why they always seem to target scouts first but I think intrinsic value might only be used for AI and not targeting value.

Resistance is futile, eh?

50 XP

30th July 2008

503 Posts

#6 11 years ago

Hmmm... Maybe intrinsicValue is reversed without anyone telling us, with the smaller numbers meaning a higher value. If so, simply divide 1 by the result of that whole equation to make battleships more valuable than, say, scouts.

I'm also working on an addition to the formula for having the ability to build/repair like a yard. That should be out soon.

Guest

I didn't make it!

0 XP

#7 11 years ago

Just saw this. Very very nice! Looks like you've put some serious work into it and some serious thought as well. I've been kinda winging it to try and get the AI to stop shooting scouts before battleships. I really enjoy it when people think outside the box. Keep it up!

Resistance is futile, eh?

50 XP

30th July 2008

503 Posts

#8 11 years ago

I've made a slight upgrade to the formula: now, it takes into account the ability of the ship/station to build other ships/stations and to repair like a yard. I'm not sure if I'm going to add anything else, so stay tuned!

apoclaydon

Modding Beginner

50 XP

6th October 2006

286 Posts

#9 11 years ago

looks crazy maybe we need a tool to make it easier

Resistance is futile, eh?

50 XP

30th July 2008

503 Posts