Jump to content


Photo

AI Build Priority


  • Please log in to reply
1 reply to this topic

#1 Msakdillz

Msakdillz
  • New Members
  • 8 posts

Posted 16 April 2004 - 09:42 AM

hey sup forum viewers. I'm trying to figure out if there is way to have a building priority, I want the AI to build something over something else example.. If Computer dosnt have enough dozers and has blah money , then build a supply drop over a barraks. or build a war factory rather the rebuild something that it dosnt realy need. Was thinking it might be something to do with the how many times to check per frame?

Another question, Ive been having a problem with the Supply Expansion script. I tell the computer build at a supply with at least 30000, So it will build a defense and a supply station. But over time when all the supply's are gone the computer keeps building defense at the last supply zone it built at. :so: The only way ive got it to over come that is to quit expanding after a certain time ...

thanks

#2 Mithril

Mithril

    496

  • Hosted
  • 1,386 posts
  • Location:UK
  • Projects:Heh! You're not going to ask me that question.

Posted 16 April 2004 - 10:35 AM

The first one.. is that not easily done when you modify the Base Building <difficulty> folder? For example, you could make the Ai check if it has enough money and then set it to build .. a warfactory for example.. This is either very easy or I have misunderstood it again..


As for the second one, you could calculate the time it takes for a specific number of supply gatheres to empty the source and set the time after that, and IF** the enemy attacks (supply source is attacked) you could alter that counter.. that way you would pretty much assure that the AI empties the supply source AFTER it is depleted.
Command & Conquer: Red Alert - ReGeneration

"Not the faintest clue =\"

-ComradeJ




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users