Warcraft III resources & community, 2003–2006 · archived

I need some trigger help plz.

2 posts
#1

I need some trigger help plz.

I want to make a random unit spawn. I want the game to choose from only 6 custom units. Its a AoS map but I want to create diffrent units for each team. Make any sence?
#2
Make two triggers. 'Random_Unit' is a variable 'unit type' and array 6 (or the number of units you want)

Trigger1
Events - Map inizialation (what ever i cant spell it :))
Conditions - None
Actions:
-Set Random_Unit [1] = footman
-Set Random_Unit [2] = grunt
-Set Random_Unit [3] = ghoul
-Set Random_Unit [4] = Mini-Me
-Set Random_Unit [5] = Clan
-Set Random_Unit [6] = CBS

Yes i know... :)

Trigger2
Events - Every 5 seconds of the game time
Conditions - None
Actions:
Create 1 Random_Unit [Random integer between 1 and 6] for player1 at center of <region>

There you go. Have fun