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

How can I make a trigger that replaces the trigger when triggered?

Status
Not open for further replies.
Level 2
Joined
Jul 20, 2022
Messages
6
like every 1 minute theres a wave of units which is: 3 rifleman 1 footman. now that specific tower destroys, the wave that spawns a unit changes into rather than 3 rifleman 1 footman, it is now 3 grunt 2 raider
 
Level 14
Joined
Jan 24, 2017
Messages
280
How about a simple boolean check?
  • Spawn Trigger
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (<Tower> is alive) Equal to True
        • Then - Actions
          • Unit - Create 3 riflemand & 1 footman
        • Else - Actions
          • Unit - Create 3 grunt & 2 raider
 
Level 2
Joined
Jul 20, 2022
Messages
6
How about a simple boolean check?
  • Spawn Trigger
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (<Tower> is alive) Equal to True
        • Then - Actions
          • Unit - Create 3 riflemand & 1 footman
        • Else - Actions
          • Unit - Create 3 grunt & 2 raider
is else triggers or changes when the turret which is alive false?
 
is else triggers or changes when the turret which is alive false?
I don't really understand this question, but the "Then"-part runs only if the "If"-part is true, otherwise the "Else"-part is run.
In the example provided, the "Then" part runs when tower is alive, "Else" when tower is dead.
 
Status
Not open for further replies.
Top