expiring timers need help!

squorpion

New Member
Reaction score
12
the set of timers i need are 2 different timers and 1 of the timers can be either20min or 30 min.
the first timer is a spawn timer wich i have set up
Code:
WolfSpawnWindow
    Events
        Time Elapsed - 0.01
    Conditions
    Actions
        Countdown Timer - Start WolfSpawn as a One-shot timer that will expire in 45.00 seconds
        Countdown Timer - Create a timer window for (Last started timer) with title Time Till Wolves Ar...
        Set Wolfspawnwindow = (Last created timer window)
        Countdown Timer - Show Wolfspawnwindow

when it expires



Code:
WolfSpawn
    Events
        Time - WolfSpawn expires
    Conditions
    Actions
        Unit - Create 1 Footman for Player 9 (Gray) at (Center of (Playable map area)) facing Default building facing degrees
        Unit - Create 1 Footman for Player 10 (Light Blue) at (Center of (Playable map area)) facing Default building facing degrees
        Unit - Create 1 Footman for Player 11 (Dark Green) at (Center of (Playable map area)) facing Default building facing degrees
        Unit - Create 1 Footman for Player 12 (Brown) at (Center of (Playable map area)) facing Default building facing degrees
        Countdown Timer - Start Sheepwin as a One-shot timer that will expire in 1200.00 seconds
        Countdown Timer - Create a timer window for (Last started timer) with title Sheep Win In
        Set SheepWinWindow = (Last created timer window)
        Countdown Timer - Show SheepWinWindow

what i want though is that if player 1 red types in -increase as an exact match with 45 seconds of gametime (durring the wolfspawn timer) then increase sheep win timer from 20 min to 30 min once created. the sheep win timer doesn't start untill the wolf spawn timer has expired.

any help at all i greatly appreciated
 

XeNiM666

I lurk for pizza
Reaction score
138
Create another trigger which you described Initially On then in your 1st trigger add ( Trigger - Enable *your trigger* ) then in your 2nd trigger add ( Trigger - Disable *your trigger* )
 

Tom Jones

N/A
Reaction score
437
Firstly you'll need to detect that a player types something:
Trigger:
  • Test
    • Events
      • Player - Player 1 (Red) types a chat message containing *Something* as An exact match
    • Conditions
    • Actions
      • Set *Some Boolean* = True
Now we can check some boolean whent the wolftimer expires:
Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • *Some Boolean* Equal to True
    • Then - Actions
      • Countdown Timer - Start *Some Timer* as a One-shot timer that will expire in *Some Real* seconds
    • Else - Actions
      • Countdown Timer - Start *Some Timer* as a One-shot timer that will expire in *Some Other Real* seconds
 

squorpion

New Member
Reaction score
12
thanks, is this correct?

Code:
Set30min
    Events
        Player - Player 1 (Red) types a chat message containing -increase as An exact match
    Conditions
    Actions
        Set Bolean = True

Code:
WolfSpawn
    Events
        Time - WolfSpawn expires
    Conditions
    Actions
        Unit - Create 1 Footman for Player 9 (Gray) at (Center of (Playable map area)) facing Default building facing degrees
        Unit - Create 1 Footman for Player 10 (Light Blue) at (Center of (Playable map area)) facing Default building facing degrees
        Unit - Create 1 Footman for Player 11 (Dark Green) at (Center of (Playable map area)) facing Default building facing degrees
        Unit - Create 1 Footman for Player 12 (Brown) at (Center of (Playable map area)) facing Default building facing degrees
        If (Bolean Equal to True) then do (Countdown Timer - Start Sheepwin as a One-shot timer that will expire in 1800.00 seconds) else do (Countdown Timer - Start Sheepwin as a One-shot timer that will expire in 1200.00 seconds)
        Countdown Timer - Create a timer window for (Last started timer) with title Sheep Win In
        Set SheepWinWindow = (Last created timer window)
        Countdown Timer - Show SheepWinWindow
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top