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

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old February 11th, 2002, 03:32 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: AI Patching requests

I can always update things later, and from what I gathered from your other post was that your mod should be a simple cut and paste from what I've already got.

Dumbluck:
Precisely. Any sort of simple, repetitive change to the AI files I can do.
As long as you have some fairly simple rules on what and how to change things... It's not an AI program to write AIs for SE4

As an example of moderate complexity:
In P&N2, for the AI_general file, I:
- skip ahead to the "*begin*"
- skip ahead until "num advanced traits" appears in the text.
- remember the first nonzero value in the text string (eg. "race opt 1 num advanced traits := 2")
- check the value of this line, if its zero, then decrement the value of the previous line in the file. (To free up some racial points so the AI will choose the adv. trait)
- increment the value of this line
- skip ahead until the first number in the line equals the old number of advanced traits
- insert "Race Opt "(number remembered above)" Name "(new number of adv traits)" := Normal"
- repeat from point 2 until EndOfFile
Reply With Quote
 

Bookmarks


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 03:00 PM.


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