Timer

Crofna

New Member
Reaction score
0
I tried to make a trigger for timer. But timer never show up in game.
Can someone tell me how to make timer like this:
45 minutes, if it expire team 1 win, if team 2 destroy <building> and <building2> and <building3> before timer expire team 2 winz.
 

Xorifelse

I'd love to elaborate about discussions...........
Reaction score
87
E: Create a timer that expires in 60 * 45 seconds.
C:
A: Playergroup - Pick every player of allies of player 1 and do: game win..

E: Unit is destroyed
C: Unit = <Select your Building>
A: Playergroup - Pick every player of allies of player 12 and do: game win..
 

Crofna

New Member
Reaction score
0
I'm having trouble with that.

Trigger:
  • Victory condition
    • Events
      • Unit - Town Hall 0096 &lt;gen&gt;&#039;s life becomes Less than 50.00
      • Time - Victory[2400] expires
    • Conditions
      • (Town Hall 0096 &lt;gen&gt; is A structure) Equal to True
    • Actions
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Game - Victory Player 1 (Red) (Skip dialogs, Show scores))


Will this do?
 

Xorifelse

I'd love to elaborate about discussions...........
Reaction score
87
2 separate triggers

Trigger:
  • Untitled Trigger 002
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Triggering unit) Equal to Acolyte 0005 &lt;gen&gt;
    • Actions
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Game - Victory (Picked player) (Show dialogs, Show scores)
      • Player Group - Pick every player in (All allies of Player 12 (Brown)) and do (Actions)
        • Loop - Actions
          • Game - Defeat (Picked player) with the message: Defeat!


Trigger:
  • Untitled Trigger 002
    • Events
      • Time - Elapsed game time is (60.00 x 45.00) seconds
    • Conditions
      • (Acolyte 0005 &lt;gen&gt; is alive) Equal to True
    • Actions
      • Player Group - Pick every player in (All allies of Player 12 (Brown)) and do (Actions)
        • Loop - Actions
          • Game - Victory (Picked player) (Show dialogs, Show scores)
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Game - Defeat (Picked player) with the message: Defeat!
 

Crofna

New Member
Reaction score
0
Now i made

Trigger:
  • Trigger 1
    • Events
      • Time - Elapsed game time is (60.00 x 45.00) seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
      • Player Group - Pick every player in (All allies of Player 5 (Yellow)) and do (Actions)
        • Loop - Actions
          • Game - Defeat Player 1 (Red) with the message: Defeat!


And

Trigger:
  • Trigger 2
    • Events
      • Unit - Town Hall 0096 &lt;gen&gt;&#039;s life becomes Less than 50.00
      • Unit - Town Hall 0049 &lt;gen&gt;&#039;s life becomes Less than 50.00
      • Unit - Tree of Life 0095 &lt;gen&gt;&#039;s life becomes Less than 50.00
    • Conditions
    • Actions
      • Player Group - Pick every player in (All allies of Player 5 (Yellow)) and do (Actions)
        • Loop - Actions
          • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Game - Defeat Player 1 (Red) with the message: Defeat!


Working now?
 

Xorifelse

I'd love to elaborate about discussions...........
Reaction score
87
Change
Trigger:
  • Game - Victory Player 1 (Red) (Show dialogs, Show scores)

To
Trigger:
  • Game - Victory Picked Player (Show dialogs, Show scores)


Remember that if any of these 3 units in trigger 2 becomes lower then 50, the trigger fires. Most logic step is to just create an event where a unit is dying, and add these conditions to it.

Trigger:
  • Conditions
    • (Town Hall 0096 &lt;gen&gt; is dead) Equal to True
    • (Town Hall 0049 &lt;gen&gt; is dead) Equal to True
    • (Tree of Life 0095 &lt;gen&gt; is dead) Equal to True


Now when the trigger fires, if ALL of those units are dead then the action is fired.
 

Crofna

New Member
Reaction score
0
Trigger:
  • Trigger 1
    • Events
      • Time - Elapsed game time is (60.00 x 45.00) seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Game - Victory (Picked player) (Show dialogs, Show scores)
      • Player Group - Pick every player in (All allies of Player 5 (Yellow)) and do (Actions)
        • Loop - Actions
          • Game - Defeat Player 1 (Red) with the message: Defeat!


Trigger:
  • Trigger 2
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Town Hall 0049 &lt;gen&gt; is dead) Equal to True
      • (Town Hall 0096 &lt;gen&gt; is dead) Equal to True
      • (Tree of Life 0095 &lt;gen&gt; is dead) Equal to True
    • Actions
      • Player Group - Pick every player in (All allies of Player 5 (Yellow)) and do (Actions)
        • Loop - Actions
          • Game - Victory (Picked player) (Skip dialogs, Show scores)
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Game - Defeat Player 1 (Red) with the message: Defeat!


Is it finaly working? :)
 

Xorifelse

I'd love to elaborate about discussions...........
Reaction score
87
Still, Game - Defeat Player 1 (Red) with the message: Defeat! should be changed to Picked Player.
 

Crofna

New Member
Reaction score
0
Trigger:
  • Trigger 1
    • Events
      • Time - Elapsed game time is (60.00 x 45.00) seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Game - Victory (Picked player) (Show dialogs, Show scores)
      • Player Group - Pick every player in (All allies of Player 5 (Yellow)) and do (Actions)
        • Loop - Actions
          • Game - Defeat (Picked player) with the message: Defeat!


Trigger:
  • Trigger 2
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Town Hall 0049 &lt;gen&gt; is dead) Equal to True
      • (Town Hall 0096 &lt;gen&gt; is dead) Equal to True
      • (Tree of Life 0095 &lt;gen&gt; is dead) Equal to True
    • Actions
      • Player Group - Pick every player in (All allies of Player 5 (Yellow)) and do (Actions)
        • Loop - Actions
          • Game - Victory (Picked player) (Skip dialogs, Show scores)
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Game - Defeat (Picked player) with the message: Defeat!


This is final. Thanks alot. I gave you reputation poit:thup:
 
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