• 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] Upgrade and replace unit.

Status
Not open for further replies.
Level 6
Joined
Jul 28, 2009
Messages
143
Hello thr. I whant to now how to do this.

I have a Footman and when i upgrade Iron Swords the footman will be replaced to Swordsman. How can i do that?

I meen all my footmans will be replaced, not just one.
 
Level 13
Joined
Mar 24, 2010
Messages
950
This is what you want (remove leaks of course)

  • Upgrade
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Iron Forged Swords
      • (Current research level of Iron Forged Swords for (Owner of (Triggering unit))) Equal to 1
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Footman) and do (Actions)
        • Loop - Actions
          • Unit - Replace (Picked unit) with a Swordsman using The new unit's default life and mana
you can just make all triggers like this for each unit u want and/or level of the upgrade or make if-thens in it always more than 1 way. ;)
 
Status
Not open for further replies.
Top