• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Making random creeps to spawn and attack a región

Status
Not open for further replies.
Level 4
Joined
Feb 27, 2006
Messages
49
hi im making my own footmen frenzy map and i would like random creeps to spawn at a region right in front of each the 4 corners and then they should attack that corner i also like to make it so if there is no players in that corner(all 3 of them left or defeated) the creeps won't spawn in front of that corner. i also want a timer window to show when the creeps will spawn and begin their attack of each corner. it is something that should happen every 15 minutes and it is different creeps that spawn for each time.
 
Level 7
Joined
Mar 12, 2006
Messages
407
Okey i will try:

Trigger1:

Run on Map Init

Actions:
set spawnunit[1] == Footman
set spawnunit[2] == Rifleman
set spawnunit[3] == Knight
set spawnunit[4] == Worker

and so on
spawnunit is variable array unit-type

Trigger2:
Run on periodic event every 600 secs
Actions:
Unit: Create 1 spawnunit[Random Integer between 1 and 4] for Player ...

---

got it ?
 
Status
Not open for further replies.
Top