• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Upgrading unit individualy

Status
Not open for further replies.
Level 15
Joined
Sep 11, 2013
Messages
557
Greetings!
I have an unit which can build a tower building(ancient protector) and i've add an upgrade(research) on this tower.
What I want to make is that when I select 1 tower and click that upgrade only that unit upgrades(upgrade icon must dissapear for this tower). (the upgrade will give ability - spell immunity to the unit)
After i build another tower or click to another tower, i want to see the upgrade again so i can make spell immunity towers 1 by 1.
I want the upgrade to cost gold and lumber.. I don't want to change the entire unit with "upgrades to"..
It is possible?

The help will be appreciated!
 
Use the Charge Gold and Lumber ability and detect when the unit casts it using this trigger:
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to YourAbility
  • Actions
    • Unit - Add Spell Immunity to (Triggering unit)
    • Unit - Remove YourAbility from (Triggering unit)
I haven't tested it but it SHOULD work. You may need to use a different cast Event.
 
Status
Not open for further replies.
Back
Top