| 01-26-2004, 12:54 AM | #1 |
i need to make the computer to ONLY create random units from the barracks (barracks already placed) the human computer also have control of a few ancients of war... so the computer must create random units from it too... its possible¿¿¿¿¿!!!! |
| 01-26-2004, 01:41 AM | #2 |
Are you trying to modify AI scripts or do you just want to do it by triggers? I think you could do it with something like: E - a unit finishes training a unit C - unit-type of training unit =... C - owner of trained unit =... A - Set Random = Random number from 1 to 5 A - If Random = 1 then order training unit to build X A - If Random = 2 then order training unit to build Y etc. |
| 01-26-2004, 01:48 AM | #3 |
ok.. ill try using triggeers... i already did something like that... but i will do that way....BUT if the random takes the number "3" and 3 = archer and the barrack dont haver archers to produce... the trigger will stop or will try with other number??? |
| 01-26-2004, 01:50 AM | #4 |
That one I just wrote will just stop if the building's ordered to train something it doesn't have available, I think. Afraid I don't know how to check if a unit is available... if you can do that, you could easily have it loop until it lands on a unit that it can train... |
