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

Unit removed from game if....

Status
Not open for further replies.
Level 3
Joined
May 17, 2005
Messages
30
How do i make a dummy unit that will be removed from game when the hero spawns from the tavern. Basically i want to

1. Have a guy so i can choose my hero

2. Choose my hero and make guy disappear
 
Level 8
Joined
Aug 3, 2008
Messages
391

  • Hero Pick
    • Events
      • Unit - A unit Sells a unit
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Sold unit) is A Hero) Equal to True
        • Then - Actions
          • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • And - All (Conditions) are true
                    • Conditions
                      • (Unit-type of (Picked unit)) Equal to Footman
                      • (Owner of (Sold unit)) Equal to (Owner of (Picked unit))
                • Then - Actions
                  • Unit - Remove (Picked unit) from the game
                • Else - Actions
        • Else - Actions
 
Status
Not open for further replies.
Top