• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Cyclic event

Status
Not open for further replies.
Level 8
Joined
Aug 18, 2015
Messages
163
Hi there! For a map of mine still in construction, I'd like some of the creeps to receive reinforcements everyday at midnight, if a player defeats them. I thought using the "Time is x" event would work, but it seems it only occurs on the first time the hour is midnight. Do you know how I can make this a cyclic, everlasting thing?


Regen des succubes
Events
Game - The in-game time of day becomes Equal to 24.00
Conditions
Actions
Trigger - Turn off (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(All units of Succubes1 are dead) Equal to Vrai
Then - Actions
Unit Group - Remove all units from Succubes1.
Unit - Unhide PortailSuccubes1
Animation - Play PortailSuccubes1's birth animation
Wait 6.00 seconds
Unit - Create 1 Tortionnaire abjecte for Neutral Hostile at (Position of PortailSuccubes1) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes1
Wait 2.00 seconds
Unit - Order (Last created unit) to Move To (Center of Sm1 <gen>)
Wait 0.75 seconds
Unit - Create 1 Succube for Neutral Hostile at (Position of PortailSuccubes1) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes1
Wait 1.50 seconds
Unit - Order (Last created unit) to Move To (Center of S1 <gen>)
Animation - Play PortailSuccubes1's death animation
Wait 10.00 seconds
Unit - Hide PortailSuccubes1
Trigger - Turn on (This trigger)
Else - Actions
Trigger - Turn on (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(All units of Succubes2 are dead) Equal to Vrai
Then - Actions
Unit Group - Remove all units from Succubes2.
Unit - Unhide PortailSuccubes2
Animation - Play PortailSuccubes2's birth animation
Wait 6.00 seconds
Unit - Create 1 Tortionnaire abjecte for Neutral Hostile at (Position of PortailSuccubes2) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes2
Wait 2.00 seconds
Unit - Order (Last created unit) to Move To (Center of Sm2 <gen>)
Wait 1.50 seconds
Unit - Create 1 Succube for Neutral Hostile at (Position of PortailSuccubes2) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes2
Wait 1.50 seconds
Unit - Order (Last created unit) to Move To (Center of S2 <gen>)
Animation - Play PortailSuccubes2's death animation
Wait 10.00 seconds
Unit - Hide PortailSuccubes2
Trigger - Turn on (This trigger)
Else - Actions
Trigger - Turn on (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(All units of Succubes3 are dead) Equal to Vrai
Then - Actions
Unit Group - Remove all units from Succubes3.
Unit - Unhide PortailSuccubes3
Animation - Play PortailSuccubes3's birth animation
Wait 6.00 seconds
Unit - Create 1 Tortionnaire abjecte for Neutral Hostile at (Position of PortailSuccubes3) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes3
Wait 2.00 seconds
Unit - Order (Last created unit) to Move To (Center of Sm3 <gen>)
Wait 1.50 seconds
Unit - Create 1 Succube for Neutral Hostile at (Position of PortailSuccubes3) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes3
Wait 1.50 seconds
Unit - Order (Last created unit) to Move To (Center of S3 <gen>)
Animation - Play PortailSuccubes3's death animation
Wait 10.00 seconds
Unit - Hide PortailSuccubes3
Trigger - Turn on (This trigger)
Else - Actions
Trigger - Turn on (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(All units of Succubes4 are dead) Equal to Vrai
Then - Actions
Unit Group - Remove all units from Succubes4.
Unit - Unhide PortailSuccubes4
Animation - Play PortailSuccubes4's birth animation
Wait 6.00 seconds
Unit - Create 1 Tortionnaire abjecte for Neutral Hostile at (Position of PortailSuccubes4) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes4
Wait 2.00 seconds
Unit - Order (Last created unit) to Move To (Center of Sm4 <gen>)
Wait 1.50 seconds
Unit - Create 1 Succube for Neutral Hostile at (Position of PortailSuccubes4) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes4
Wait 1.50 seconds
Unit - Order (Last created unit) to Move To (Center of S4 <gen>)
Animation - Play PortailSuccubes4's death animation
Wait 10.00 seconds
Unit - Hide PortailSuccubes4
Trigger - Turn on (This trigger)
Else - Actions
Trigger - Turn on (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(All units of Succubes5 are dead) Equal to Vrai
Then - Actions
Unit Group - Remove all units from Succubes5.
Unit - Unhide PortailSuccubes5
Animation - Play PortailSuccubes5's birth animation
Wait 6.00 seconds
Unit - Create 1 Tortionnaire abjecte for Neutral Hostile at (Position of PortailSuccubes5) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes5
Wait 2.00 seconds
Unit - Order (Last created unit) to Move To (Center of Sm5 <gen>)
Wait 1.50 seconds
Unit - Create 1 Succube for Neutral Hostile at (Position of PortailSuccubes5) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes5
Wait 1.50 seconds
Unit - Order (Last created unit) to Move To (Center of S5 <gen>)
Animation - Play PortailSuccubes5's death animation
Wait 10.00 seconds
Unit - Hide PortailSuccubes5
Trigger - Turn on (This trigger)
Else - Actions
Trigger - Turn on (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(All units of Succubes6 are dead) Equal to Vrai
Then - Actions
Unit Group - Remove all units from Succubes6.
Unit - Unhide PortailSuccubes6
Animation - Play PortailSuccubes6's birth animation
Wait 6.00 seconds
Unit - Create 1 Tortionnaire abjecte for Neutral Hostile at (Position of PortailSuccubes6) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes6
Wait 2.00 seconds
Unit - Order (Last created unit) to Move To (Center of Sm6 <gen>)
Wait 1.50 seconds
Unit - Create 1 Succube for Neutral Hostile at (Position of PortailSuccubes6) facing Default building facing degrees
Unit Group - Add (Last created unit) to Succubes6
Wait 1.50 seconds
Unit - Order (Last created unit) to Move To (Center of S6 <gen>)
Animation - Play PortailSuccubes6's death animation
Wait 10.00 seconds
Unit - Hide PortailSuccubes6
Trigger - Turn on (This trigger)
Else - Actions
Trigger - Turn on (This trigger)
 
Status
Not open for further replies.
Top