View Single Post
  #7  
Old May 25th, 2005, 09:44 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: interview with Aaron Hall

Pretty sure that means "put 'em where the modders can get at 'em"

In other words, instead of plugging numbers into predefined algorithms like you do in SE4, you could actually write your own AI code in some sort of scripting language (maybe Python or Javascript?)

pseudo code follows:
Code:

if enemy.shipCount > 100
{
for p in planets
{
if p.buildRate > 5000
p.build("doomStar")
else
p.build("spaceYard")
}
}
else
{
for p in planets
p.build("mineralMiner")
}



Or, if you're in a particularly sadistic mood, you could try this AI:

http://www.comedycode.com/showcode.cfm/code/28.html

edit: drat, Fyron was faster... stupid examples
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote