wjeirjwh
  • wjeirjwh
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
Sry bad english.

How can i keep computer player alive? If someone destroys command center and some other buildings than computer sells the rest.

I thought to increase command center health points so it is hard to destroy. How can i do that? On my map there is no supply center allowed and computer player sells all buildings which i put with scripts on map, if there is no supply center.

Or just forbid computer to sell buildings.....
Sponsor
zixme
  • zixme
  • 50.25% (Neutral)
  • Private
13 years ago
i dunno how but the AI can have more commande centers i think
i^love^mixery
13 years ago
what kind of map are you building?

mission map? skirmish map?

is the AI supposed to work or are you scripting it by yourself?
wjeirjwh
  • wjeirjwh
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
Skirmish multiplayer map. If i use player->transfer command center AI sells it. AI should just keep alive and send units from TechReinforcementPad´s (building ~500x on map) to enemies. And capture unused / civilian TechReinforcementPad´s (which does not work - 20x ranger try to get the same Pad and then the next one, so it takes very long time to capture all Pad´s. And i cant player-> transfer all pad´s just did it for the first ~100 pad´s)

Human players just destroy command center and some other weak buildings and win the map.
i^love^mixery
13 years ago
i still dont get wether you except the AI to work or not.

if you dont want it to work then you can simply spawn the buildings for the skirmish player with scripts, then the comp wont sell them.

Unit -> Spawn -> Spawn named unit at waypoint

*** IF ***
True.
*** THEN ***
Spawn Unit 'pad01' of type 'TechReinforcementPad' on Team '' at waypoint Waypoint 'pad01'


but if you do that then the AI wont do anything since you have put scripts into the folder of that player, so the games thinks you want to script them entirely by yourself.

if you want the AI to work (e.G. building stuff and attack) then you have to import the AI scripts into your map manually and then add this spawn script to the standard scripts.