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

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

Status
Not open for further replies.
Level 18
Joined
Jan 21, 2006
Messages
2,552
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.
 
Level 11
Joined
Dec 5, 2009
Messages
846
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.
Top