Warcraft III resources & community, 2003–2006 · archived

Making random creeps to spawn and attack a región

7 posts
#1

Making random creeps to spawn and attack a región

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.
#2
There is a timerwindow tutorial in the tutorial forum!

For your random spawn you should create a listing of possible creeps and set an unit variable array for each one.

Then u spawn a number of unit variable [random integer]
#3
could you post a trigger example for me please
#4
Trigger example gui based ?
I'm german and so i'm running a german WE, i think it won't help you
#5
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 ?
#6
omg thanks man! i really appreciate your help i just have question though does the spawned units have to be owned by player can they just be neutral
#7
You may also choose spawn for neutral enemy, right
By the way you could have tried this out, would have been much faster then waitin' for a forum reply ;)