| 09-03-2005, 09:13 AM | #1 | |
Ive made this trigger below, It works fine and creates all the trees and so on. The problem is, It seems to make the random number the same all the time, cause every time I test the map, It looks the same! Is it supposed to be like this or have I done something wrong? -If you dont feel like reading this long trigger, I'll explain it here. It is supposed to create 280-350 summer tree walls at random point in the map, and then change the terrain texture there. Then change the terrain a bit.. My problem is it places the trees at the same spots every time! Quote:
|
| 09-03-2005, 11:50 AM | #2 |
random numbers dont seem to work on elapsed game time. They DO work on map init (unless u use waits on that, which seems stupid 2 me anyway) so what u need 2do is create the random number at map init and use it at elapsed time |
| 09-03-2005, 01:50 PM | #3 | |
But doesnt it work too use as random loot on monsters for example? Event Unit Dies Condition blabla. Action Set Loot = random between 1 and 3 If loot = 1 create item blabla If loot = 2 create item blablabla I think that works, so why wont it work on this one? Is it because the event is Elapsed time? EDIT: Ok I set the random numbers in an Map intilialization like this Trigger 1: Quote:
and Trigger 2 is almost the same as the first one posted. |
| 09-03-2005, 05:07 PM | #4 |
You're not clicking the test button to test it are you? Because unless you've checked random number seed during test or something like that, it'll keep giving you the same number instead of making a random one. |
| 09-03-2005, 08:06 PM | #5 |
Ok then thats probably the problem ;P I'll fix that later and try it |
