.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
winSPWW2- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old October 12th, 2004, 02:02 PM
Aiken's Avatar

Aiken Aiken is offline
Major
 
Join Date: Jan 2004
Location: Taganrog, Russia
Posts: 1,087
Thanks: 0
Thanked 0 Times in 0 Posts
Aiken is on a distinguished road
Default Re: Newbie AI Writing Thread

Fleets Num Divisions := X
Defines the rules for amount of fleets to change through the game.

Example:
Code:
 Fleets Div 1 Max Amount of Ships                                             := 20
Fleets Div 1 Max Amount of Planets := 0
Fleets Div 1 Num Fleets := 2


Starting item. If total amount of ships in empire <= 20 then AI will form 2 fleets per empire. If amount of ships > 20 then go to Fleets Div 2 item.
Code:
 Fleets Div 2 Max Amount of Ships                                             := 60
Fleets Div 2 Max Amount of Planets := 0
Fleets Div 2 Num Fleets := 3


So, if 20<amount of ship<=60 AI will form 3 fleets per empire. Etc.

Last item usually looks like this:
Code:
 Fleets Div X Max Amount of Ships                                             := 100000
Fleets Div X Max Amount of Planets := 0
Fleets Div X Num Fleets := 10


Maximum amount of fleets for your AI will be 10, because total amount of ships will be always below 100000.

You can make make fleet amount dependant of total number of planets in your empire with Fleets Div N Max Amount of Planets := xyz, but then you can't refer to amount of ships item (must use Fleets Div X Max Amount of Ships := 0)

Quote:
Fleets Percentage of Ships For Fleets - 100%, to take advantage of fleet training.

Fleets Dont Use For Num Turns - 0, so that the AI puts ships into fleets right away.
AI doesn't care about training.

Oh, and colonizers have nothing to do with fleets, they don't join them.
Reply With Quote
  #2  
Old October 12th, 2004, 02:05 PM
Ragnarok-X's Avatar

Ragnarok-X Ragnarok-X is offline
Major General
 
Join Date: Jan 2004
Location: Germany / Bielefeld
Posts: 2,035
Thanks: 33
Thanked 18 Times in 12 Posts
Ragnarok-X is an unknown quantity at this point
Default Re: Newbie AI Writing Thread

Well i think this quite important:

When writing "designcreation" files, you must follow a certain order. Put the advanced ships at the top, and low-tech ships at the bottom, the AI will always build the ships at the top, so given you put advanced ships at the bottom of the file, the AI may design them (for example battleships), but it actually will never build them, because it thinks that the "escort" the top is more advanced.

My 2 cent, which took me a LONG time to figure out.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:59 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.