• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Freezing Death

Status
Not open for further replies.
Level 8
Joined
Jun 16, 2008
Messages
333
I am making a maze and I made this part where if slide into water you have 45 seconds to get to the next check point but for some reason if you do make it, it doesn't turn off. Can you help?

  • Speacial 3
    • Events
      • Unit - A unit enters Region 403 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Master Cheif
    • Actions
      • Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + needs to get to the next check point in 45 seconds or he will die!)
      • Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Owner of (Triggering unit)))
      • Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 45.00 seconds
      • Wait 45.00 seconds
      • Unit - Kill (Triggering unit)
      • Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + has died because he is slow=()
      • Countdown Timer - Destroy (Last created timer window)
turn off trigger
  • Speacial 3 Copy
    • Events
      • Unit - A unit enters Region 356 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Master Cheif
    • Actions
      • Countdown Timer - Destroy (Last created timer window)
      • Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + has reached the check point and survived!)
      • Trigger - Turn off Speacial 3 <gen>
 
Level 13
Joined
Mar 24, 2010
Messages
950
Try this out

  • Speacial 3
    • Events
      • Unit - A unit enters Region 403 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Master Cheif
    • Actions
      • Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + needs to get to the next check point in 45 seconds or he will die!)
      • Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Owner of (Triggering unit)))
      • Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 45.00 seconds
      • For each (Integer A) from 1 to 45, do (Actions)
        • Loop - Actions
          • Wait 1.00 seconds
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • CheckPoint_Bool Equal to True
            • Then - Actions
              • Skip remaining actions
            • Else - Actions
      • Unit - Kill (Triggering unit)
      • Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + has died because he is slow=()
      • Countdown Timer - Destroy (Last created timer window)
turn off trigger
  • Speacial 3 Copy
    • Events
      • Unit - A unit enters Region 356 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Master Cheif
    • Actions
      • Set CheckPoint_Bool = True
      • Countdown Timer - Destroy (Last created timer window)
      • Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + has reached the check point and survived!)
      • Trigger - Turn off Speacial 3 <gen>
I didnt test it but it should work for what you want..
 
Level 16
Joined
Oct 17, 2009
Messages
1,580
try this:
  • Speacial 3
    • Events
      • Unit - A unit enters Region 403 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Master Cheif
    • Actions
      • Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + needs to get to the next checkpoint in 45 seconds or he will die!)
      • Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Owner of (Triggering unit)))
      • Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 45.00 seconds
      • Wait 45.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Region 356 <gen> contains (Triggering unit)) Equal to True
        • Then - Actions
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Unit - Kill (Triggering unit)
          • Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + has died because he is slow:()
      • Countdown Timer - Destroy (Last created timer window)
hope this will work for yah
 
Level 13
Joined
Mar 24, 2010
Messages
950
No he has to skip remaining actions or he'll still die regardless, turning off the trigger doesn't stop actions from continuing.

Edit: Well now that i look at it closer yours will work also, but it wont stop right away when he gets to the check point, it will keep going the full length of time till the 45 secs is up.
 
Last edited:
Status
Not open for further replies.
Top