SC2Mapster Forums

Development > Triggers

Timer issue

  • 5 posts
    #1 Jan 09, 2013 at 08:42 UTC - 0 likes

    My timer box doesn't disappear. Could some one please tell me what is the matter?

    Timer Box
        Events
            Game - Map initialization
        Local Variables
        Conditions
        Actions
            Timer - Start Timer as a One Shot timer that will expire in 285.0 Game Time seconds
            Variable - Set Timer = (Last started timer)
            Timer - Create a timer window for (Last started timer), with the title "Time Until all Hell breaks loose", using Remaining time (initially Visible)
            Variable - Set Timer Window = (Last created timer window)

    Timer Box kill
        Events
            Timer - Timer expires
        Local Variables
        Conditions
            Timer == (Triggering timer)
        Actions
            Timer - Destroy (Last created timer window)

    http://img577.imageshack.us/img577/9202/mirr.png
    1/12/2013 Misu

    #2 Jan 09, 2013 at 09:16 UTC - 0 likes

    Maybe remove the condition?... If you have only one timer, why you need a condition for it?

    #3 Jan 09, 2013 at 11:07 UTC - 0 likes

    Change the second trigger to:

    Timer Box kill
        Events
            Timer - Timer expires
        Local Variables
        Conditions //condition not needed since triggering timer will always be "Timer"
        Actions
            Timer - Destroy (Timer Window) //use your timer window variable

    Last edited Jan 09, 2013 by Mille25

    http://i55.tinypic.com/wio5t0.jpg

    Starcraft Universe lead programmer

    #4 Jan 09, 2013 at 11:10 UTC - 0 likes

    Damn! I was going to actually help someone on here for once but your post beat me by 2 minutes!

    #5 Jan 09, 2013 at 17:16 UTC - 0 likes

    Thank you guys ^.^

    Last edited Jan 09, 2013 by iMisu
  • 5 posts

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