| 04-18-2007, 08:58 PM | #1 |
Alright I'm pretty new to the coding style of the campaign editor but not to coding entirely but I've been very stumped with this dumb vote dialog that wont work. Maybe someone could tell me what's wrong? Here's the first section ![]() Here's the second part ![]() Please excuse me if the coding looks horrendous =[ and if you really need it, here is a link to the map itself. http://www.megaupload.com/?d=G5NUE0PU What it's supposed to do is display a dialog that says Allow uber heroes? with yes and no choices. If no wins the vote, then it removes 4 buildings in-game that sell tomes, so no uber heroes are able to be built. |
| 04-18-2007, 10:02 PM | #2 |
Next time use [trigger] tags It takes less time for you (you don't have to take screenshots/upload anything) and it takes less time for us (we don't have to download big images) -- what's happening now? I can notice that you may be waiting for every click so you do the actions after the waits many repeated times. It would be better to have an if after assigning yes/no instead of waiting (seems the only way for yes and no to change value is with a click, so a wait is not needed) |
| 04-19-2007, 03:10 AM | #4 |
Alright I'll try replacing some stuff with your code provided tomorrow because I don't have the time tonight, but I did try to open your attached file, and it crashed world edit after giving me a bunch of errors saying "function does not exist" and listed a bunch of functions like DestroyTimer =\ |
| 04-19-2007, 05:41 AM | #5 |
Lok, you are setting the no +1 twice in your trigger, fyi. |
| 04-19-2007, 09:40 AM | #6 |
hm, sorry about that Lok, I forgot destroy timer was an added function, here's the map without it. it works fine without destroying the timer, just force of habit for me. |
| 04-19-2007, 11:58 PM | #7 |
Wow thanks bro I really appreciate all the work and time you guys spent on this. |
