Need help with timer

unknown666

New Member
Reaction score
5
Ok, I've posted a thread earlier, and now I figured out a way to make a spell to capture a territory.

But now my problem is, it won't start my timer, these are my triggers:

Trigger:
  • base 1 capture
    • Events
      • Unit - A unit enters Capture base 1 <gen>
    • Conditions
      • ((Triggering unit) is in UnitGroup[1]) Equal to True
    • Actions
      • Set baseCaptureActive[1] = True
      • Trigger - Run timer base 1 <gen>

Trigger:
  • base 1 capture 2
    • Events
      • Unit - A unit enters Capture base 1 <gen>
    • Conditions
      • ((Triggering unit) is in UnitGroup[2]) Equal to True
    • Actions
      • Set baseCaptureActive[2] = True
      • Trigger - run timer base 1 <gen>

Trigger:
  • timer base 1
    • Events
    • Conditions
    • Actions
      • Countdown Timer - Create a timer window for BaseCaptureTimer[1] with title
      • Set TimerWindowBaseCapture[1] = (Last created timer window)
      • Countdown Timer - Show TimerWindowBaseCapture[1]
      • Countdown Timer - Change the color of the time for (Last created timer window) to (100.00%, 0.00%, 0.00%) with 20.00% transparency
      • Countdown Timer - Start BaseCaptureTimer[1] as a One-shot timer that will expire in 15.00 seconds
      • Trigger - Run timer base 1 pause check <gen> (ignoring conditions)

Trigger:
  • timer base 1 pause check
    • Events
    • Conditions
    • Actions
      • Wait until ((baseCaptureActive[1] Equal to True) and (baseCaptureActive[2] Equal to True)), checking every 1.00 seconds
      • Countdown Timer - Pause BaseCaptureTimer[1]
      • Wait until ((baseCaptureActive[1] Equal to False) or (baseCaptureActive[2] Equal to False)), checking every 1.00 seconds
      • Countdown Timer - Resume BaseCaptureTimer[1]

Anyone found the problem?

Just if you couldn't figure out.

I'm trying to create a sorta system, where you enter a circle and it starts a 20 second timer.

But it has some rules to it.

When a unit from team 1 enters the capture region, the timer simply keeps ticking.

BUT now a unit from team 2 enters, and now there is a team 1 unit and a team 2 unit IN the region. So the timer pause's.

Now the team 1 unit is dead, and the timer stops.

Thanks,

unknown666
 

cleeezzz

The Undead Ranger.
Reaction score
268
a few things ..

1. i did not see you set any Timer windows.
2. the timer base 1 pause check has no event, turning it on doesn't make it run, use Trigger - Run
 

unknown666

New Member
Reaction score
5
Thanks, that helped +rep

But just one quick question, do I also need to add loop to the pause check?
Because it doesn't work, and it only creates a new timer, how to fix this?
 
General chit-chat
Help Users

      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