| 04-03-2010, 11:15 PM | #1 |
Hi all, I'm getting into Wc3 editing again and I just wanted to create some test stuff to help me remember what I'm sure I've forgotten after a long break. I'd really appreciate if some one can take the time to help me out. What I'm trying to do is when your hero enters a new area, variables are set and creeps are randomly created in the various regions in the area. What I do next is try to randomize their destination and set custom data on the unit to keep track of stuff for the triggers. The problem is the randomization on where to go next isn't random. It seems to choose 0 out of random number between 0 and X I'm unsure of what the cause is, can some one take a look? I don't know if I entered something wrong in the trigger which causes the randomization to be 0 out of 0 or if it's something else. In the folder Laby (short for labyrinth) is where the triggers are. "Laby test region enter" contains the variable expanation. Type "test1" to set the variables (and kill all previous creeps) and "test2" to spawn a creep. "Speed#" sets the movement speed of the creeps. Thanks if some one can help me. |
| 04-04-2010, 07:09 PM | #2 |
Have you tried starting the map out of warcraft III directly ?? there is a setting in the world editor, so that it random is not really random when starting the map out of the world editor. Check the "File > Preferences" dialog. |
| 04-05-2010, 04:25 PM | #3 |
I got it working, the problem was I accidentally had one used just the 206 number instead of the value of IntegerVariable[206]. I want to thank you for the tip of removing the fixed random seed, it was highly annoying. |
