• 🏆 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!

[Trigger] Gates don't work properly

Status
Not open for further replies.
Level 4
Joined
Dec 12, 2012
Messages
96
This should be very simple but I can't figure out why I always get a bug with opening/closing gates. The only problem I encounter is that the gates sometimes close before they're supposed to.

Gate North
  • Gate North
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Set GateNorth = Demonic Gate (Vertical) 6832 <gen>
      • Destructible - Make GateNorth Invulnerable
      • Trigger - Turn on Gate North Open and Close <gen>
      • Trigger - Run Gate North Open and Close <gen> (ignoring conditions)
>Not initially on
  • Gate North Open and Close
    • Events
    • Conditions
    • Actions
      • Set GateNorthRan_1 = (Random real number between 30.00 and 300.00)
      • Wait GateNorthRan_1 seconds
      • Destructible - Open GateNorth
      • Game - Display to (All players) for 5.00 seconds the text: |cff00ff00THE NORTH...
      • Set GateNorthRan_2 = (Random real number between 30.00 and 300.00)
      • Wait GateNorthRan_2 seconds
      • Destructible - Close GateNorth
      • Game - Display to (All players) for 5.00 seconds the text: |cfff4a460THE NORTH...
      • Trigger - Run (This trigger) (checking conditions)
  • Gate South
    • Events
      • Time - Elapsed game time is 2.00 seconds
      • Conditions
      • Actions
        • Set GateSouth = Elven Gate (Vertical) 6833 <gen>
        • Destructible - Make GateSouth Invulnerable
        • Trigger - Turn on Gate South Open and close <gen>
        • Trigger - Run Gate South Open and close <gen> (ignoring conditions)
>Not initially on
  • Gate South Open and close
    • Events
    • Conditions
    • Actions
      • Set GateSouthRan_1 = (Random real number between 30.00 and 300.00)
      • Wait GateSouthRan_1 seconds
      • Destructible - Open GateSouth
      • Game - Display to (All players) for 5.00 seconds the text: |cff00ff00THE SOUTH...
      • Set GateSouthRan_2 = (Random real number between 30.00 and 300.00)
      • Wait GateSouthRan_2 seconds
      • Destructible - Close GateSouth
      • Game - Display to (All players) for 5.00 seconds the text: |cfff4a460THE SOUTH...
      • Trigger - Run (This trigger) (checking conditions)
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
how do you know when theyre opening and closing when theyre not spsed o if its random
 
Level 4
Joined
Dec 12, 2012
Messages
96
There are texts that shows up whenever there are changes in gates and they happen at the same time. But sometimes, the text shows up couple of seconds away before the gate even closes, or even sometimes minutes away.
 
Status
Not open for further replies.
Top