• 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] Help with replacing units..

Status
Not open for further replies.
Level 3
Joined
Jun 30, 2005
Messages
46
  • post defender Copy
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Trained unit)) Equal to Post Defender
        • Then - Actions
          • Unit - Remove (Trained unit) from the game
          • Unit - Create 15 Post Defender for (Owner of (Trained unit)) at (Position of (Trained unit)) facing Default building facing degrees
        • Else - Actions
K this is wat i want my trigger to be...

A unit trained the post defender... 15 defender comes out. and then replace the building that trained the post defender with another building...

the part im stuck on is the part where i replace the building.. help plz
 
Level 4
Joined
Mar 15, 2008
Messages
71
  • post defender Copy
  • Events
    • Unit - A unit Finishes training a unit
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Unit-type of (Trained unit)) Equal to Post Defender
      • Then - Actions
        • Unit - Remove (Trained unit) from the game
        • Unit - Create 15 Post Defender for (Owner of (Trained unit)) at (Position of (Trained unit)) facing Default building facing degrees
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Unit-type of (Training unit)) Equal to "the building type that you want to replace
      • Then - Actions
        • Unit - Replace (Training unit) with "the building type that you want to replace the OLD BUILDING WITH"
 
Last edited:
Status
Not open for further replies.
Top