slird
  • slird
  • 50.25% (Neutral)
  • Major Topic Starter
10 years ago
In my Zero Hour Mission map, I have the early stage AI building two different attack teams; one infantry and one vehicle. Ive been messing around with the scripting but cannot get the AI to delay building the vehicle attack team. The teams are being built by running a subroutine "player is able to build units" via the "condition" in the team identity tab.
I realize that I must change the condition, but do not know how to script it properly to get the AI to delay the vehicle team build. (e.g., every two minutes, or after an action takes place, etc...)
Any suggestions?
Sponsor
klingondragon
10 years ago
Just have a standard (non subroutine) script that doesn't deactivate upon success

Have it as :
IF
True
Then
Player builds team

Then change it so it runs every 120 seconds instead of every frame
slird
  • slird
  • 50.25% (Neutral)
  • Major Topic Starter
10 years ago
Hmm...never thought of that. Thanks.
Lengo
  • Lengo
  • 69.5% (Friendly)
  • Captain
10 years ago
If Skirmishplayer has more than x infantry units in team, then Skirmishplayer builds vehicle team.

If Skirmishplayer has more than x infantry units team1 AND
If skirmishplayer has more than x vehicle units in team2
then
set team1 to attack
set team2 to attack
slird
  • slird
  • 50.25% (Neutral)
  • Major Topic Starter
10 years ago
Thanks, Lengo. But I am not making a skirmish map...it is a mission map.