• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Upgrading a unit into a new unit?

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
Is there a premade unit that can do this.

Basically, I will have a unit with multiple upgradeable tiers.

Lets say you have a foot man, you click on an purchase/upgrade within his abilities/inventory area and he then deletes himself and creates a new unit.

Does that exist already? Or would it have to be custom made?

If custom, I'm guessing I give my unit an ability that he can purchase. But what trigger should I use, unit upgrades? I'm not quite sure.
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
Like this?

  • Upgrade to Footman
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Upgrade to Footman
    • Actions
      • Unit - Replace (Triggering unit) with a Footman using The old unit's relative life and mana
I've attached a file if you want to experiment with it.
 

Attachments

  • demo-unitupgrades.w3x
    14.3 KB · Views: 19
Level 15
Joined
Jul 9, 2008
Messages
1,552
add the unit u wont to upgrade to the units sold in the object editor

then use this trigger
  • Events
    • Unit - A unit Sells a unit
  • Conditions
    • (Unit-type of (Triggering unit)) Equal to Footman
  • Actions
    • Unit - Remove (Triggering unit) from the game
 
Status
Not open for further replies.
Top