| 03-09-2004, 08:48 PM | #1 |
Ok, This is what I want: I want "the editor" to create a random unit of my choise.. -----ETC----- - Random Unit - Set Variable - Unit [1] = Footman Set Variable - Unit [2] = Knight - Random Unit Create - Create Unit - Create random unit from (Unit (random number 1-2)) in region (UnitRegion) Something like that.. Tell me if you don't understand it at all and I'll try to expland in more detail.(In a hurry right now) |
| 03-09-2004, 09:07 PM | #2 |
I don't see your problem Make an array called Unit-Type or whatever then you make atrigger Code:
Events: Map initialization
Actions: Set Unit-Type[1] = footman
Set Unit-Type[2] = knightThen make the trigger to spawn them Code:
Events: Whatever you wish, perhaps a periodic event Conditions: Whatevre you wish Actions: Unit - Create 1 Unit-Type[Random Integer from 1 to 2] at region. this is exactly what you wrote in the first place.. well I dont see the problem, maybe I made it clearer or something |
| 03-10-2004, 01:24 PM | #3 |
Ah, Thanks! I forgot that I needed a Unit-Type Variable (Tried with Integer, UnitGruop and Unit Variables ;) ) |
