• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your 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 ^^
 
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.
Back
Top