• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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