• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Gates Loop Trigger

Status
Not open for further replies.
Level 6
Joined
Feb 6, 2015
Messages
266
Hi guys. I need help with a loop trigger that involves 3 gates and 6 levers to open/close them.

Each gate has 2 levers, one outside the city and one inside. I made 6 actions for each lever. However I couldn't get them compressed into 1 loop action.

So, perhaps the more intelligent minds can help with this.

Here are some screenies for better view of the subject.

R9FbEWe.jpg

owcXdut.jpg
 
Upload triggers inside [ TRIGGER ] [/ TRIGGER ] tags :D (Inside [ HIDDEN ][/ HIDDEN ] tags.)

Your resurrect lever is kind of buggy using the hp of the last created destructable instead of full life or even a raw "infinite" value.

For the loop... it is kind of bugging me that you use "1" as the first index and have to switch my mind onto doing something really stupid...

In any case, you want to loop only over the destructables (lever) to find which lever is destroyed.
Then you want to check if Gate[IntegerA / 2] is open/close... o wait, you use "1" as first index of your arrays... lemme take a look: You want to check if Gate[(IntegerA +1) / 2] is open/close.
Then you open/close Gate[IntegerA / 2]... o wait, you use "1" as first index of your arrays... lemme take a look: You want to open/close Gate[(IntegerA +1) / 2].
 
Status
Not open for further replies.
Back
Top