Problem with timer

hasslarn

New Member
Reaction score
20
The problem i get is this look down for pitchur

Pitchur

Triggers
Code:
dgstarter
    Events
        Dialog - A dialog button is clicked for aba
    Conditions
        (Clicked dialog button) Equal to abawindow[1]
    Actions
        Countdown Timer - Start dg[1] as a One-shot timer that will expire in 60.00 seconds
        Countdown Timer - Create a timer window for (Last started timer) with title Next Wave in:
        Countdown Timer - Show (Last created timer window)
        Countdown Timer - Change the color of the time for (Last created timer window) to (100.00%, 80.00%, 50.00%) with 0.00% transparency
        Set dgwindow[1] = (Last created timer window)
        Set dg[1] = (Last started timer)

Code:
Start Wave
    Events
        Time - dg[1] expires
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in (Units in Dungeon fight 1 <gen>)) Greater than or equal to 1
            Then - Actions
                Countdown Timer - Destroy dgwindow[1]
                Unit - Create 5 Rat for Neutral Hostile at (Center of Dungeon fight 1 <gen>) facing Default building facing degrees
                Countdown Timer - Start dg[2] as a One-shot timer that will expire in 60.00 seconds
                Countdown Timer - Create a timer window for (Last started timer) with title Wave 2 in:
                Countdown Timer - Show (Last created timer window)
                Countdown Timer - Change the color of the time for (Last created timer window) to (100.00%, 80.00%, 50.00%) with 0.00% transparency
                Set dgwindow[2] = (Last created timer window)
                Set dg[2] = (Last started timer)
            Else - Actions

Code:
Wave 2
    Events
        Time - dg[2] expires
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in (Units in Dungeon fight 1 <gen>)) Greater than or equal to 1
            Then - Actions
                Countdown Timer - Destroy dgwindow[2]
                Unit - Create 5 Rabbit for Neutral Hostile at (Center of Dungeon fight 1 <gen>) facing Default building facing degrees
                Countdown Timer - Start dg[3] as a One-shot timer that will expire in 60.00 seconds
                Countdown Timer - Create a timer window for (Last started timer) with title Wave 3 in:
                Countdown Timer - Show (Last created timer window)
                Countdown Timer - Change the color of the time for (Last created timer window) to (100.00%, 80.00%, 50.00%) with 0.00% transparency
                Set dgwindow[3] = (Last created timer window)
                Set dg[3] = (Last started timer)
            Else - Actions

Code:
Wave 3
    Events
        Time - dg[3] expires
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in (Units in Dungeon fight 1 <gen>)) Greater than or equal to 1
            Then - Actions
                Countdown Timer - Destroy dgwindow[3]
                Unit - Create 3 Rabbit for Neutral Hostile at (Center of Dungeon fight 1 <gen>) facing Default building facing degrees
                Unit - Create 5 Rat for Neutral Hostile at (Center of Dungeon fight 1 <gen>) facing Default building facing degrees
                Countdown Timer - Start dg[4] as a One-shot timer that will expire in 60.00 seconds
                Countdown Timer - Create a timer window for (Last started timer) with title Wave 4 in:
                Countdown Timer - Show (Last created timer window)
                Countdown Timer - Change the color of the time for (Last created timer window) to (100.00%, 80.00%, 50.00%) with 0.00% transparency
                Set dgwindow[4] = (Last created timer window)
                Set dg[4] = (Last started timer)
            Else - Actions

Thoose are the triggers , why does it get all blank like that?

the first timer workes and gets destroyed but the secound just get all blank no numbers inside it
 

Artificial

Without Intelligence
Reaction score
326
Try setting the array size of the timer variable to 3, in case you haven't already done that.
 

XxShadyxX

I abused the rep system.
Reaction score
81
Hey you can just restart the first timer instead of makeing new one every wave.

Code:
dgstarter
    Events
        Dialog - A dialog button is clicked for aba
    Conditions
        (Clicked dialog button) Equal to abawindow[1]
    Actions
        [COLOR="blue"]Set Integer = Integer + 1[/COLOR]
        Countdown Timer - Start dg as a One-shot timer that will expire in 60.00 seconds
        Countdown Timer - Create a timer window for (Last started timer) with title Next Wave in:
        Countdown Timer - Show (Last created timer window)
        Countdown Timer - Change the color of the time for (Last created timer window) to (100.00%, 80.00%, 50.00%) with 0.00% transparency
        Set dg = (Last started timer)

and:

Code:
Start Wave
    Events
        Time - dg expires
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in (Units in Dungeon fight 1 <gen>)) Greater than or equal to 1
           [COLOR="blue"]Integer Equal to 1[/COLOR]
            Then - Actions
                Unit - Create 5 Rat for Neutral Hostile at (Center of Dungeon fight 1 <gen>) facing Default building facing degrees
                Countdown Timer - Start dg as a One-shot timer that will expire in 60.00 seconds
                Countdown Timer - Change Title of dg to Wave (Integer + 1) in:
                Countdown Timer - Show (Last created timer window)            Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top