G
GonkY
Guest
Ok . When someone has not entered the game i want computer take control of their units ( without need to set before start users to computers ). I already create a simple AI . Here is the trigger , but that stuck ... when game start nothing happens ( no AI playing ) , only names has set . Where is the problem ?
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Not equal to Is playing
Then - Actions
Player Group - Add (Player((Integer A))) to (All players)
AI - Start campaign AI script for (Player((Integer A))): war3mapImported\unknown.ai
Player - Set (Player((Integer A))) Current gold to 2500
Player - Set name of (Player((Integer A))) to ImenaAI[(Random integer number between 1 and 12)]
Else - Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Not equal to Is playing
Then - Actions
Player Group - Add (Player((Integer A))) to (All players)
AI - Start campaign AI script for (Player((Integer A))): war3mapImported\unknown.ai
Player - Set (Player((Integer A))) Current gold to 2500
Player - Set name of (Player((Integer A))) to ImenaAI[(Random integer number between 1 and 12)]
Else - Actions