| 08-17-2006, 04:18 PM | #2 |
Firstly, you can remove all of the 0.01 waits as they are not doing anything except putting a pause between the function calls. The second thing deals with your counting trigger; it doesn't determine which index is set to the highest value, it instead just gives you the highest value, which means if option 1 and 2 are tied for the most votes, option 1 will be selected. Of course, this is good if that's how you want it. It would be odd if either of these had anything to do with your problem, but I thought I should point them out anyway, since I couldn't figure out what was actually wrong. |
| 08-17-2006, 08:13 PM | #3 |
I have a hunch it is the initial values. What's the initial value of TempInt? If it is less than 7 then you may have a problem. I would simply avoid it and use DialogVotingCount[7] and initialize it in the first trigger with 0. You should also initialize DialogVotingCount[1], DialogVotingCount[2] [...] DialogVotingCount[6] with 0 at the beginning of the first trigger. Why? Because I'm not sure how initial values are assigned to the array. Just a hunch but I think it will work! ~Daelin |
| 08-17-2006, 09:09 PM | #4 |
in wc3map.j, all arrays get declared with a value of null, 0, "", false or if their certain types of handles, they will be created. Arrays are declared up to the array size of the array, setting the array size to 10 for instance, will loop 10 times and set all the values to nothing. (as above, 0, "" etc) So i doubt its that problem. But its worth a try. |
| 08-17-2006, 11:21 PM | #5 |
Nope, it still won't damn work. Heh, apparently, each time I test this, I get the trigger as if I clicked on the first dialog button, changing the Leaderboard title to Score - 5 Kills, as in everyone clicked only the first button. And once when I clicked on the first Dialog Button the leaderboard changed to Score - 10 Kills, as in the Second Dialog Button. I don't really care to use the above, I just really... REALLY need something that works. And.. the above is odd... Can anyone help me out by crafting a similar trigger that works, one that is able to change the Leaderboard Title also? |
