• 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.

Timer/Unit help?

Status
Not open for further replies.
Level 2
Joined
Apr 10, 2008
Messages
11
When this timer ends it should spawn unit but instead it spawns unit and ignores the timer.


  • Zombie Incoming Timer
    • Events
      • Unit - A unit enters Marines Teleport here <gen>
    • Conditions
      • (Entering unit) Equal to (Triggering unit)
    • Actions
      • Trigger - Turn off (This trigger)
      • Countdown Timer - Create a timer window for ZombieComing with title Zombie incoming
      • Set ZombieComing_TimerW = (Last created timer window)
      • Countdown Timer - Start ZombieComing as a One-shot timer that will expire in 120.00 seconds
      • Countdown Timer - Change the color of the time for ZombieComing_TimerW to (50.00%, 30.00%, 8.00%) with 0.00% transparency
      • Countdown Timer - Change the color of the time for ZombieComing_TimerW to (90.00%, 90.00%, 90.00%) with 0.00% transparency
      • Countdown Timer - Show ZombieComing_TimerW
      • Wait 120.00 seconds
      • Countdown Timer - Destroy Rescue_TimerWindow
  • Zombie Coming TOP
    • Events
      • Time - ZombieComing expires
      • Time - Every 25.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 10 Zombie LvL 1 for Player 11 (Dark Green) at (Center of Zombie Area1 <gen>) facing Default building facing degrees
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Unit Group - Order (Units in Zombie Area1 <gen>) to Attack-Move To (Random point in Zombies Attack Here <gen>)
        • Else - Actions








Then this timer doesnt wanna work.







  • Start The Timer
    • Events
      • Unit - A unit enters Marines Teleport here <gen>
    • Conditions
      • (Entering unit) Equal to (Triggering unit)
    • Actions
      • Trigger - Turn off (This trigger)
      • Countdown Timer - Create a timer window for (Expiring timer) with title Rescue!
      • Set Rescue_TimerWindow = (Last created timer window)
      • Countdown Timer - Start Rescue_Timer as a One-shot timer that will expire in 3600.00 seconds
      • Countdown Timer - Change the color of the time for Rescue_TimerWindow to (90.00%, 90.00%, 90.00%) with 0.00% transparency
      • Countdown Timer - Show Rescue_TimerWindow
      • Wait 3600.00 game-time seconds
      • Countdown Timer - Destroy Rescue_TimerWindow



Can sombody help?
 
Level 12
Joined
Mar 16, 2006
Messages
992
could it be because you put "Trigger - Turn off (This trigger)" before it does the other stuff?

No. It runs the rest of the trigger before it shuts off.

There's a command to skip the remaining actions of a trigger in the GUI, I think, but that's not needed.

When this timer ends it should spawn unit but instead it spawns unit and ignores the timer.

  • Zombie Incoming Timer
    • Events
      • Unit - A unit enters Marines Teleport here <gen>
    • Conditions
      • (Entering unit) Equal to (Triggering unit)
    • Actions
      • Trigger - Turn off (This trigger)
      • Countdown Timer - Create a timer window for ZombieComing with title Zombie incoming
      • Set ZombieComing_TimerW = (Last created timer window)
      • Countdown Timer - Start ZombieComing as a One-shot timer that will expire in 120.00 seconds
      • Countdown Timer - Change the color of the time for ZombieComing_TimerW to (50.00%, 30.00%, 8.00%) with 0.00% transparency
      • Countdown Timer - Change the color of the time for ZombieComing_TimerW to (90.00%, 90.00%, 90.00%) with 0.00% transparency
      • Countdown Timer - Show ZombieComing_TimerW
      • Wait 120.00 seconds
      • Countdown Timer - Destroy Rescue_TimerWindow

First thing I saw. You're changing the color of the time twice.

  • Zombie Coming TOP
    • Events
      • Time - ZombieComing expires
      • Time - Every 25.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 10 Zombie LvL 1 for Player 11 (Dark Green) at (Center of Zombie Area1 <gen>) facing Default building facing degrees
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Unit Group - Order (Units in Zombie Area1 <gen>) to Attack-Move To (Random point in Zombies Attack Here <gen>)
        • Else - Actions

Get rid of
  • Event: Time - ZombieComing expires
Turn off Initially On.
Make a new trigger with that event and have it turn on the zombie spawn script.



Then this timer doesnt wanna work.

  • Start The Timer
    • Events
      • Unit - A unit enters Marines Teleport here <gen>
    • Conditions
      • (Entering unit) Equal to (Triggering unit)
    • Actions
      • Trigger - Turn off (This trigger)
      • Countdown Timer - Create a timer window for (Expiring timer) with title Rescue!
      • Set Rescue_TimerWindow = (Last created timer window)
      • Countdown Timer - Start Rescue_Timer as a One-shot timer that will expire in 3600.00 seconds
      • Countdown Timer - Change the color of the time for Rescue_TimerWindow to (90.00%, 90.00%, 90.00%) with 0.00% transparency
      • Countdown Timer - Show Rescue_TimerWindow
      • Wait 3600.00 game-time seconds
      • Countdown Timer - Destroy Rescue_TimerWindow
Can sombody help?

  • Countdown Timer - Create a timer window for (Expiring timer) with title Rescue!
Could this be it?

You don't always have to mash everything into 1 trigger. It's okay to make another trigger to assist your main one. Hope this helps.
 
Status
Not open for further replies.
Top