• 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.

[Trigger] "random x units from x region" is not random

Status
Not open for further replies.
Level 3
Joined
Sep 16, 2007
Messages
21
The code "random X units from X region" doesnt pick a random unit. When i start the map the first unit is always the same. The second is almost the same.

This is the picture of it.
http://img508.imageshack.us/img508/8423/notrandomny4.jpg


This is what i want to do.

There is a region named "rasgele_yaratik" and on it there are 40 different units.

This trigger is suppost to;

- Pick a random unit from "rasgele_yaratik" region and put it in "rasgele_birim"
variable.

- Create that unit 5 times.

- Rise max hp by givin an item.

- Collision off to open their way.

- wait 0.5 seconds for the next turn.

Then..

- Kill the unit that copy 5 times. So it will not create again.

- Clear the unit group variable "rasgele_birim"

- Wait XXX seconds dor the next LvL

Then..

I will copy/paste the whole code 40 times to make 40 LvL TD.

The end =)

Is there a ready-to-use random create unit code for a TD map? I really need one. I'm really frustrated.
 
Level 3
Joined
Sep 16, 2007
Messages
21
Thanks for your help. Unchecking "fix random seed" solved the problem.

I want to ask one more think what do you think about my "random creaate creep" trigger? Is it clean or too much complicated?
 
Status
Not open for further replies.
Top