• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Trigger Off

Status
Not open for further replies.
Yeah, in variable editor, make an Trigger (array) and at the beginning of the game initialize each trigger in the array to be a trigger in your category. When you want to turn off the triggers, use these actions:

  • Actions
    • For each (Integer A) from 0 to (Numer of Triggers In Category), do Actions
      • Loop - Actions
        • Trigger - Turn Off (Trigger_In_Category[Integer A])
 
You can set every trigger you want in a variable, and then use a loop.
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Set Triggers[1] = Trigger3 <gen>
    • Set Triggers[2] = Spawn1 <gen>
    • Set Triggers[3] = Item Use <gen>
  • Trigger2
  • Events
    • //Event here
  • Conditions
  • Actions
    • For each (IntegerA) from 1 to 3, do (Actions)
      • Loop - Actions
        • Trigger - Turn off Triggers[(IntegerA)]
Triggers[] is a "Trigger" variable.

Edit: Mr. Bribe was faster ^^
 
Level 6
Joined
Mar 22, 2009
Messages
276
Do what Pharaoh told you it is easier to understand. It is the same thing with what bribe said but done in different method.
 
Status
Not open for further replies.
Top