• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Triggers help

Status
Not open for further replies.
Seriously, I answered this like an hour ago:
Even though I am upset that you didnt search through the forums. I prefer gate triggers with 2 levers, because it takes a second just to open the gate. Wel first you need a trigger like this:
  • Gate Trigger 2 levers
    • Events
      • Destructible - A destructible within (Playable map area) dies
    • Conditions
    • Actions
      • Set TempIntA = 0
      • For each (Integer A) from 1 to HowManyGatesYouHave, do (Actions)
        • Loop - Actions
          • Set TempIntA = (TempIntA + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Dying destructible) Equal to LeverA[TempIntA]
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • LeverAToggle[TempIntA] Equal to 0.00
                • Then - Actions
                  • Set LeverAToggle[TempIntA] = 1.00
                • Else - Actions
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Dying destructible) Equal to LeverB[TempIntA]
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • LeverBToggle[TempIntA] Equal to 0.00
                • Then - Actions
                  • Set LeverBToggle[TempIntA] = 1.00
                • Else - Actions
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • Gate[TempIntA] Equal to False
                  • LeverAToggle[TempIntA] Equal to 1.00
                  • LeverBToggle[TempIntA] Equal to 1.00
            • Then - Actions
              • Destructible - Open GateUnit[TempIntA]
              • Set Gate[TempIntA] = True
              • Countdown Timer - Start GateTimer[TempIntA] as a One-shot timer that will expire in 3.00 seconds
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • And - All (Conditions) are true
                    • Conditions
                      • Gate[TempIntA] Equal to True
                      • LeverAToggle[TempIntA] Equal to 1.00
                      • LeverBToggle[TempIntA] Equal to 1.00
                • Then - Actions
                  • Destructible - Close GateUnit[TempIntA]
                  • Set Gate[TempIntA] = False
                  • Countdown Timer - Start GateTimer[TempIntA] as a One-shot timer that will expire in 3.00 seconds
                • Else - Actions
Then you need to make respawn triggers for each timer:
  • Gate Revive 1
    • Events
      • Time - GateTimer[1] expires
    • Conditions
    • Actions
      • Set TempIntA = 1
      • Set LeverAToggle[TempIntA] = 0.00
      • Set LeverBToggle[TempIntA] = 0.00
      • Destructible - Resurrect LeverA[TempIntA] with (Max life of (Last created destructible)) life and Show birth animation
      • Destructible - Resurrect LeverB[TempIntA] with (Max life of (Last created destructible)) life and Show birth animation
For the different timers just ajust TempIntA to the array number on the timer.
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
Ever heard the phrase: guns don't kill people, people do? Well Naruto doesn't make B.net like a playground, people do :p
But oh no, we strayed offtopic. The feds can bust my door any moment then. Sorry for that.
By the way, my post wasn't meant to be offensive, I was merely trying to input some scorn, so, Op, don't be afraid of using the WEHZ in the future, just search first..
 
Status
Not open for further replies.
Top