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

Need help with my triggers. Could this break?

Status
Not open for further replies.
Level 8
Joined
Jul 17, 2004
Messages
283
I just need to know if this could ever break, since the message is in a separate trigger, and the variable can be set at different times, as well as the trigger being fired at different times...?

  • TRIGGER 01
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Blah Blah
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering unit) Equal to Blah Blah
        • Then - Actions
          • Blah Blah
        • Else - Actions
          • Set Player = (Owner of (Triggering unit))
          • Trigger - Run Denied <gen> (checking conditions)
  • TRIGGER 02
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Blah Blah
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering unit) Equal to Blah Blah
        • Then - Actions
          • Blah Blah
        • Else - Actions
          • Set Player = (Owner of (Triggering unit))
          • Trigger - Run Denied <gen> (checking conditions)
  • TRIGGER 03
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Blah Blah
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering unit) Equal to Blah Blah
        • Then - Actions
          • Blah Blah
        • Else - Actions
          • Set Player = (Owner of (Triggering unit))
          • Trigger - Run DENIED <gen> (checking conditions)
  • DENIED
    • Events
    • Conditions
    • Actions
      • Game - Display to (Player group(Player)) for 0.70 seconds the text: Sorry!
 
Level 20
Joined
Aug 13, 2013
Messages
1,696
The event is the same so it is better to merge the actions of trigger 2 and 3 to the trigger 1 so you'll not create a 2 triggers from this.
Anyway the 3 triggers are the same so remove the 2 triggers.
 
Status
Not open for further replies.
Top