How to make a unit upgrade when a buildin is upgraded?

gabriono

New Member
Reaction score
0
I want to make something like this: When Barracks 1 upgrades to Barracks 2 then Footman 1 upgrades to Footman 2 Without replacing the unit, just like Troll headhunter -> Troll Beserker
 

WaterKnight

Member
Reaction score
7
Then go see how trolls do it. They use the ability Berserk Upgrade (Sbsk). So add this ability (it has a requirement on default).
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
You could use the Berserker method, whereby Footman 1 has a Chaos ability that changes him into Footman 2 but requires a Barracks 2. But I'm not too sure what you mean by "without replacing the unit", so I think I might suggest you make Barracks 2 train Footman 2 instead of Footman 1.
 

gabriono

New Member
Reaction score
0
I made it by triggers becouse i dont know why but "Beserker upgrade" dosent work, i dont know what i did wrong. Can you make pls a map with a unit with this upgrade to see what i have to change?

Trigger:
  • Unit Transform
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Upgrade to Unit 2
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Actions)
        • Loop - Actions
          • If ((Unit-type of (Picked unit)) Equal to Unit 1) then do (Unit - Replace (Picked unit) with a Unit 2 using The old unit's relative life and mana) else do (Do nothing)
 

johnnymra

New Member
Reaction score
14
Your trigger works fine but as kaerfnomekop said you have to set the barracks 2 to create these footman 2 in order to make sure those you create next will be the same type... otherwise this is a perfect solution and easy as well
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
I made a test map. Hope it suits your purposes. Though I'm not too sure if the triggering was really necessary.
 

Attachments

  • Footman Upgrade Test Map.w3x
    20.6 KB · Views: 208

gabriono

New Member
Reaction score
0
I made a test map. Hope it suits your purposes. Though I'm not too sure if the triggering was really necessary.

Ty! Problem sloved! I made some improvements and i made the upgrade and availability withowt triggers.(in your version the triggers were nedded)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top