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

This Month's Specials

The Falklands War: 1982- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

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 10:17 AM.


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