• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Trigger Off

Status
Not open for further replies.

Bribe

Code Moderator
Level 50
Joined
Sep 26, 2009
Messages
9,464
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