• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Repeating Timer Window Disappearing

Status
Not open for further replies.
Level 5
Joined
Jul 18, 2007
Messages
110
Hello all, I have a repeating shown timer window (expires every 90 secs) that for some reason, disappears after 5 min game time exactly. The variable just gets destroyed and the timer is unable to be shown anymore. HOWEVER, the timer itself works perfectly and clearly still runs in the background. I have checked anything that can coincide, there is nothing destroying or declaring new timer variables, etc. There is just a spawn upgrade that sets some research tech and increases different integer variables but nothing that affected this.

  • Turn On Overall Spawn Trigger
    • Events
    • Conditions
    • Actions
      • Countdown Timer - Create a timer window for SpawnTimer with title Spawn Timer
      • Set VariableSet Spawn = (Last created timer window)
      • Countdown Timer - Start SpawnTimer as a Repeating timer that will expire in 90.00 seconds
      • Countdown Timer - Show Spawn
I have another repeating timer that functions throughout the game.

Any ideas? Thanks!
 
Last edited:
Level 5
Joined
Jul 18, 2007
Messages
110
Yep, these are the only ones:

  • Main use:
  • Turn On Overall Spawn Trigger
    • Events
    • Conditions
    • Actions
      • Countdown Timer - Create a timer window for SpawnTimer with title Spawn Timer
      • Set VariableSet Spawn = (Last created timer window)
      • Countdown Timer - Start SpawnTimer as a Repeating timer that will expire in 90.00 seconds
      • Countdown Timer - Show Spawn
      • Custom script: call DestroyTrigger(GetTriggeringTrigger())
  • Overall Spawn Trigger
    • Events
      • Time - SpawnTimer expires
    • Conditions
    • Actions
      • Trigger - Run Gondor Overall Spawn <gen> (checking conditions)
      • Trigger - Run Rohan Overall Spawn <gen> (checking conditions)
      • Trigger - Run Elves Overall Spawn <gen> (checking conditions)
      • Trigger - Run Shire Overall Spawn <gen> (checking conditions)
      • Trigger - Run Dwarves Overall Spawn <gen> (checking conditions)
      • Trigger - Run Isengard Overall Spawn <gen> (checking conditions)
      • Trigger - Run Moria Overall Spawn <gen> (checking conditions)
      • Trigger - Run Easterlings Overall Spawn <gen> (checking conditions)
      • Trigger - Run Harad Overall Spawn <gen> (checking conditions)
      • Trigger - Run Morgul Overall Spawn <gen> (checking conditions)
      • Trigger - Run Mordor Overall Spawn <gen> (checking conditions)
  • Spawn Timer Off
    • Events
      • Player - Player 1 (Red) types a chat message containing -stoff as An exact match
      • Player - Player 2 (Blue) types a chat message containing -stoff as An exact match
      • Player - Player 3 (Teal) types a chat message containing -stoff as An exact match
      • Player - Player 4 (Purple) types a chat message containing -stoff as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -stoff as An exact match
      • Player - Player 6 (Orange) types a chat message containing -stoff as An exact match
      • Player - Player 7 (Green) types a chat message containing -stoff as An exact match
      • Player - Player 8 (Pink) types a chat message containing -stoff as An exact match
      • Player - Player 9 (Gray) types a chat message containing -stoff as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -stoff as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -stoff as An exact match
      • Player - Player 12 (Brown) types a chat message containing -stoff as An exact match
      • Player - Player 13 (Maroon) types a chat message containing -stoff as An exact match
      • Player - Player 14 (Navy) types a chat message containing -stoff as An exact match
      • Player - Player 15 (Turquoise) types a chat message containing -stoff as An exact match
      • Player - Player 16 (Violet) types a chat message containing -stoff as An exact match
      • Player - Player 17 (Wheat) types a chat message containing -stoff as An exact match
      • Player - Player 18 (Peach) types a chat message containing -stoff as An exact match
      • Player - Player 19 (Mint) types a chat message containing -stoff as An exact match
      • Player - Player 20 (Lavender) types a chat message containing -stoff as An exact match
      • Player - Player 21 (Coal) types a chat message containing -stoff as An exact match
      • Player - Player 22 (Snow) types a chat message containing -stoff as An exact match
      • Player - Player 23 (Emerald) types a chat message containing -stoff as An exact match
      • Player - Player 24 (Peanut) types a chat message containing -stoff as An exact match
    • Conditions
    • Actions
      • Countdown Timer - Hide Spawn for (Triggering player)
  • Spawn Timer On
    • Events
      • Player - Player 1 (Red) types a chat message containing -ston as An exact match
      • Player - Player 2 (Blue) types a chat message containing -ston as An exact match
      • Player - Player 3 (Teal) types a chat message containing -ston as An exact match
      • Player - Player 4 (Purple) types a chat message containing -ston as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -ston as An exact match
      • Player - Player 6 (Orange) types a chat message containing -ston as An exact match
      • Player - Player 7 (Green) types a chat message containing -ston as An exact match
      • Player - Player 8 (Pink) types a chat message containing -ston as An exact match
      • Player - Player 9 (Gray) types a chat message containing -ston as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -ston as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -ston as An exact match
      • Player - Player 12 (Brown) types a chat message containing -ston as An exact match
      • Player - Player 13 (Maroon) types a chat message containing -ston as An exact match
      • Player - Player 14 (Navy) types a chat message containing -ston as An exact match
      • Player - Player 15 (Turquoise) types a chat message containing -ston as An exact match
      • Player - Player 16 (Violet) types a chat message containing -ston as An exact match
      • Player - Player 17 (Wheat) types a chat message containing -ston as An exact match
      • Player - Player 18 (Peach) types a chat message containing -ston as An exact match
      • Player - Player 19 (Mint) types a chat message containing -ston as An exact match
      • Player - Player 20 (Lavender) types a chat message containing -ston as An exact match
      • Player - Player 21 (Coal) types a chat message containing -ston as An exact match
      • Player - Player 22 (Snow) types a chat message containing -ston as An exact match
      • Player - Player 23 (Emerald) types a chat message containing -ston as An exact match
      • Player - Player 24 (Peanut) types a chat message containing -ston as An exact match
    • Conditions
    • Actions
      • Countdown Timer - Show Spawn for (Triggering player)
The BilboBooks one also shown in the image is the one that works fine:

  • Bilbo Book
    • Events
    • Conditions
    • Actions
      • Countdown Timer - Create a timer window for BilboBookTimer with title Bilbo's Book
      • Set VariableSet BilboBooks = (Last created timer window)
      • Countdown Timer - Hide BilboBooks
      • Countdown Timer - Show BilboBooks for (Owner of Bilbo 0445 <gen>)
      • Countdown Timer - Start BilboBookTimer as a Repeating timer that will expire in 120.00 seconds
      • Trigger - Turn on Bilbo Book Enable <gen>
      • Custom script: call DestroyTrigger(GetTriggeringTrigger())
  • Bilbo Book Enable
    • Events
      • Time - BilboBookTimer expires
    • Conditions
      • (Bilbo 0445 <gen> is alive) Equal to True
    • Actions
      • Set VariableSet temp_point = (Position of Bilbo 0445 <gen>)
      • Game - Display to (Player group((Owner of Bilbo 0445 <gen>))) the text: |c00FFFF00Bilbo has...
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WhichBook Equal to 0
        • Then - Actions
          • Set VariableSet WhichBook = (WhichBook + 1)
          • Item - Create Bilbo's Life Story at temp_point
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WhichBook Equal to 1
            • Then - Actions
              • Set VariableSet WhichBook = (WhichBook + 1)
              • Item - Create Fighting Spiders With Bilbo at temp_point
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • WhichBook Equal to 2
                • Then - Actions
                  • Set VariableSet WhichBook = (WhichBook + 1)
                  • Item - Create Bilbo's Riddle Book at temp_point
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • WhichBook Equal to 3
                    • Then - Actions
                      • Set VariableSet WhichBook = 0
                      • Item - Create Bilbo's Guide to Stealth at temp_point
                    • Else - Actions
I've even tried duplicating it to show for all picked players and using the same exact syntax.
 

Attachments

  • objects.PNG
    objects.PNG
    8.2 KB · Views: 8
Last edited:
Level 20
Joined
Mar 16, 2008
Messages
812
not really sure what's going on here but 5 minutes is 120sec + 90sec + 90sec. i'd guess it has something to do with the trigger being destroyed. so after the main use trigger it goes through the first 90 sec cycle, then the bilbo book triggers runs after that and starts the 120 sec cycle, then i'm not really sure where the final 90 sec timer happens...?
 
Level 42
Joined
Feb 27, 2007
Messages
5,313
No reason to destroy triggers unless you have an absolute fuckload of them. It was never really a concern in the past and it certainly isn't one now.

It could be being destroyed because somewhere you do a Countdown Timer - Destroy (Last created timer window). You can try to output the handleid of the window itself to see if it still exists after 5 minutes. Also disable other triggers and run the game for 5 minutes.
 
Status
Not open for further replies.
Top