View Single Post
  #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