| 06-17-2005, 08:23 PM | #1 |
first i would like to set up what i am trying to do because it seems im having a hard time describing what i want. i am sending waves of creeps against a fortified postion and want it so that you dont know what may be coming, such as flyers come at a point in the game, but during the next game you play they send catapults ect. i am wondering if this can be done using an in game random generator or whether i need to have evryone pick a number at the begining and do it that way |
| 06-17-2005, 08:32 PM | #2 |
Use Random Integers. |
| 06-17-2005, 08:41 PM | #3 |
Guest | If i understand correctly what you want to do, Make a unit-type array with all the different types of units you want to move toward the fortified position. Then when you create the units say: Create # units of unit type UNITTYPEARRAY[random integer from 1 to <however many units are in the array>] for... |
| 06-17-2005, 10:36 PM | #4 |
Code:
Set Variable Arrays
Events
Map initialization
Conditions
Actions
Set Units[1] = Footman
Set Units[2] = Gryphon Rider
Set Units[3] = Siege Engine
Set Units[4] = Dragonhawk RiderCode:
Run Unit Creation
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Unit - Create 5 Units[(Random integer number between 1 and 4)] for Neutral Hostile at tempPoint facing Default building facing degreesThere you go. An example of the triggers eclips)e explained. |
| 06-18-2005, 05:01 PM | #5 |
thank yo guys |
