• 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] rebuild then team change?

Status
Not open for further replies.
Level 4
Joined
Jul 29, 2009
Messages
49
while testing one of my triggers that rebuilds destroyed buildings, i noticed that the another trigger that changes the team of the buildings activated. this trigger only activates through another trigger, so is there a leak? i would post the triggers, but there are so many of them. should i post the map instead so people can have a look and see what is possibly wrong?
 
Level 4
Joined
Jul 29, 2009
Messages
49
here are the triggers that are activating:

  • rebuild
    • Events
      • Game - The in-game time of day becomes Equal to 24.00
    • Conditions
    • Actions
      • If ((Housing Complex 0041 <gen> is dead) Equal to True) then do (Unit - Replace Housing Complex 0041 <gen> with a Housing Complex using The new unit's default life and mana) else do (Do nothing)
      • If ((Housing Complex 0042 <gen> is dead) Equal to True) then do (Unit - Replace Housing Complex 0042 <gen> with a Housing Complex using The new unit's default life and mana) else do (Do nothing)
      • If ((Housing Complex 0043 <gen> is dead) Equal to True) then do (Unit - Replace Housing Complex 0043 <gen> with a Housing Complex using The new unit's default life and mana) else do (Do nothing)
      • If ((Housing Complex 0044 <gen> is dead) Equal to True) then do (Unit - Replace Housing Complex 0044 <gen> with a Housing Complex using The new unit's default life and mana) else do (Do nothing)
      • If ((Training Facility 0085 <gen> is dead) Equal to True) then do (Unit - Replace Training Facility 0085 <gen> with a Training Facility using The new unit's default life and mana) else do (Do nothing)
  • brcorner red
    • Events
      • Unit - A unit enters brcorner <gen>
    • Conditions
      • ((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
    • Actions
      • Set CapturingUnit = (Triggering unit)
      • Trigger - Turn on brcorner red 2 <gen>
  • brcorner red 2
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • (brcorner <gen> contains CapturingUnit) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • CountdownTimer Equal to 10
        • Then - Actions
          • Unit - Change ownership of Housing Complex 0044 <gen> to Player 1 (Red) and Change color
          • Unit - Change ownership of Housing Complex 0043 <gen> to Player 1 (Red) and Change color
          • Unit - Change ownership of Housing Complex 0042 <gen> to Player 1 (Red) and Change color
          • Unit - Change ownership of Housing Complex 0041 <gen> to Player 1 (Red) and Change color
          • Unit - Change ownership of Training Facility 0085 <gen> to Player 1 (Red) and Change color
          • Unit - Change ownership of Turret 0110 <gen> to Player 1 (Red) and Change color
          • Unit - Change ownership of Turret 0111 <gen> to Player 1 (Red) and Change color
          • Unit - Change ownership of Turret 0113 <gen> to Player 1 (Red) and Change color
          • Unit - Change ownership of Turret 0114 <gen> to Player 1 (Red) and Change color
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Set CountdownTimer = (CountdownTimer + 1)
the last trigger is initially off, so it can only be activated by the previous trigger.
 
Status
Not open for further replies.
Top