| 03-29-2004, 03:15 PM | #1 |
Ok, I'm sure it was said somewhere that it is possible. Does anyone know a trigger that allows you to train random models of the same unit. For example, I have 3 units named Footman. Footman 1 is the captain model. Footman 2 is the footman model. Footamn 3 is the bandit model. The barracks trains either Footman 1, 2 or 3 randomly. How is this achieved? |
| 03-29-2004, 03:36 PM | #2 |
ok this is what u do it requires some triggers Variables used-Unit type variable[0]-[2] First u set the units to the variable Code:
Set varaibles
Events-Map intialazation
conditons-none
actions
Set unitvariable[0] to type footmen1
Set unitvariable[1] to type footmen2
Set unitvariable[2] to type footmen3
Create unit
Events-A unit finishes training
Conditons-unit finished training equal to random unit
actions
Replace trained unit with unit type of unitvariable [random integer between 0 and 2] |
| 03-29-2004, 04:06 PM | #3 |
Sorry, but I really don't get that. I'm new to triggering... :\ Could you explain it please? Is this custom script code? |
