SC2Mapster Forums

Development > Triggers

[Solved] I have a serious bug with my voting system

  • 5 posts
    #1 Jan 21, 2013 at 01:01 UTC - 0 likes

    I made a successful dialog voting system, but when I added a third choice, it stopped working. The current problem is that when you select "Zerg" it stays green even when you select a different item.

    To get the images working properly, go to the Race Selection folder, open the Race Selection Initialization Trigger, scroll to the very bottom, and read the comments for instructions.

    Thanks in advance!

    Last edited Jan 21, 2013 by MoDTassadar
    Name Description Size MD5
    Dialog_Superglitch.SC2Map The glitch of doom awaits you... 349.7 KiB dacda08fff80...
    Zerg_Icon.dds Zerg Icon for the Dialog - You ... 327.6 KiB 1a55ddc35a86...
    Terran_Icon.dds Terran Icon for the Dialog - ... 327.6 KiB 14d613374fe4...
    Protoss_Icon.dds Protoss Icon for the Dialog - ... 133.6 KiB a7620f4e6662...
    #2 Jan 21, 2013 at 06:59 UTC - 0 likes

    I'm working on this, but it'll be a while, i'm cleaning up your code and leaving comments to give you pointers on how to make it easier to code stuff instead of the mess you left me.

    #3 Jan 21, 2013 at 07:12 UTC - 0 likes

    Hi MoDTassadar,

    the problem is in trigger "Race Selection Button Interaction". There is now action which sets the border of the third button to white.

    But instead of trying to fix this, I'd recommend you to clean up your code. As willuwontu said it is kind of messy. I would have given you a suggestion on this but as willuwontu will also do it, just wait for his.

    #4 Jan 21, 2013 at 08:28 UTC - 1 like

    Here is the improved version, much cleaner coding

    Name Size MD5
    Dialog_Superglitch.SC2Map 272.9 KiB 4d1bb7c467bc...
    #5 Jan 21, 2013 at 14:03 UTC - 0 likes

    Thank you so much! It works perfectly!

    I'll add you to the credits! :)

  • 5 posts

You must login to post a comment. Don't have an account? Register to get one!