[Trigger] Upgrade and replace unit.

Status
Not open for further replies.
Level 6
Joined
Jul 28, 2009
Messages
142
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.
 
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.
Back
Top