| 01-23-2005, 04:24 PM | #1 |
Hello everyone. I'm working on a map right now that'll contain many random numbers. I've tried to use the built in random number generator in the world editor, but the numbers doesn't seem to be random at all but rather like the world editor gives that number a certain seed that it doesn't change. This leads to that a event will play out the same way everytime you start the map, and then there's no point in having it random. I'm wondering if you can give the map a truly random seed when you start the it, or if there is any better random number generators than the built in? |
| 01-23-2005, 04:43 PM | #2 |
Did you make it so each time the trigger runs, you set the interger or what ever you use to random number between X and Z? Or did you make it when the map starts you set the random number and you never change it again? |
| 01-23-2005, 04:59 PM | #3 |
post the triggers that might help. |
| 01-23-2005, 05:19 PM | #4 |
are you just running TEST MAP out of the WE or are you loading the map up thru single player/custom game etc. because im pretty sure by default if you are just testing the map through the WE then it will always generate the same random number. |
| 01-23-2005, 06:28 PM | #5 | |
Quote:
Yep, it will just keep giving you the same number during a test. Works normally if you boot up war3 and run it. |
| 01-24-2005, 07:37 AM | #6 |
Yes I was running it py pressing 'test map' i WE, so I guess that's my problem. Thanks for the help. /Gewran |
| 01-24-2005, 10:21 AM | #7 |
You can set "Test Map -> Use Random Seed" in Editor Preferences. Also, cinematics are non-random in Warcraft by default, and therefore you end up with the same numbers when the cinematic mode is on. |
