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

[Trigger] Antibackdoor System - I need help making the trigger for.

Status
Not open for further replies.
Just detect the death events of your towers and flag vulnerability (SetUnitInvulnerable( )) on the towers that should become vulnerable. You can enumerate nearby towers using a unit-group.
 
Here's one trigger.

  • Untitled Trigger 003
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Unit - Make (Castle unit) Invulnerable
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Tower Unit
    • Actions
      • Set Temp_int = (Temp_int + 1)
      • -------- Here it depends on how many towers you have. I choose 2 towers. If you want 5 tower just change it to Temp_int equal to 5--------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Temp_int Equal to 2
        • Then - Actions
          • Unit - Make (Castle unit) vulnerable
        • Else - Actions
 
Status
Not open for further replies.
Back
Top