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

Random thing are same every time, WTF?

Status
Not open for further replies.
Level 7
Joined
Aug 31, 2006
Messages
132
In my gui trigger at start of the map items and units should be generated in the random point of the region, but for some weird reason they dont! Heck, every time they spawn at the same place over and over! What is the problem?
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
Sorry but all you guys ARE NOT right.
Actually u can test random numbers by clicking on "Test Map".

U have to do this: ( sry im using the german version, but i try to translate^^, so maybe its not exactly the same words)
1.Go to the main editor window.
2.Go to "file"
3.Select "Presets"
4.Now search for "Test Map"
5.Now you should see something like "Preset Random Value". Untag this, and your editor will be able to use Random Functions while Testing the Map

I hope you can find it, as my english sometimes is not the best :)

Greets
Emm-A-
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
That is true, but not the thing that happened here.
When using cinematic mode, if you turn it on with the GUI action(BJ function) the random seed is fixed.
JASS:
// Use a fixed random seed, so that cinematics play consistently.
        call SetRandomSeed(0)

Avoidable if you use jass.
 
Last edited:
Status
Not open for further replies.
Top