Likely a simple question

Malvagio

New Member
Joined
Feb 10, 2006
Messages
1
Reaction score
0
I am attempting to create myself a map with only land units accessable to both the players and cpu (save for shuttles and intelligence stuff) - That part, restricting units, I've succeeded in. What I cannot seem to find out is how to get the computers to act properly with the unit restriction. Initially, they function all right, sending in ground units while they build up and what not. However, once they reach the stage where they would be making air units if they could, they discontinue all attacks whatsoever. Is there any way to get the computer to be ground-warfare smart? Or rather, ground-oriented so they continue to attack with ground units rather than becoming helpless without any additional tech to turn to?

- I might add, the type of script I am looking for seems to be present in the actual game levels early on (before players are allowed to use air) - However I am sort of illiterate to how I might extract the scripts from the singleplayer game itself.
 

Johnny

IMMERSION RUINED
Joined
Mar 24, 2005
Messages
2,375
Reaction score
1
Location
Garden Grove, CA
I'm not too experience with AI commands, but I'm sure there are different ground-only attack situations you can activate during different times of the game.
 

Lord of Nukes

BattleForums Member
Joined
Jun 24, 2005
Messages
371
Reaction score
0
Location
New England
Website
www.scindex.com
Try AI Scripts from campaigns wheer the enemy didn't use air units. I'll give you a rough example of how most of the AI Scripts are written.

-[Build 1]Build marines
-Has many Marines, goto "Attack"
-Has few Marines, goto "Build 1"
-Time has elapsed, goto "Build 2"
-[Build 2]Build air units
-Has many air units, goto "Attack"
-[Attack]Attack the enemy

That was an incredibly rough and inaccruate representation, and I haven'
t done AI modding for at least a year, but I hope it will help you understand what is actually going on rather than just being told it won't work. Basically, at a certain point, the AI Script won't tell it to attack until it has certain units. If it doesn't have a certain amount of these units, it won't attack. If air units are put into the equation and it can't get air units, it will keep telling it to build air units before telling it to attack. Because air units are disabled, the computer will just sit there jacking off.
 

NewPosts

New threads

Top