• 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!

[JASS] Armor Change

Status
Not open for further replies.

ElvenScout

E

ElvenScout

Im not sure if this requires jass but i need a way were if a unit buys a specific item it will change their armor type. Then if they buy a different item it will change their armor to a different type :?:

(armor type meaning small, larger, or hero, and so on)

I dont want this to affect all the units owned by they player of the buying unit if that is possible
 
1. Create an ability of type Chaos
2. Create separate unit-type for unit bearing armor
3. Change morphed unit to unit from Step 2
4. Trigger when unit gets an item, add to it ability from Step 1.
5. If the item is dropped, remove the ability
6. Repeat this for every hero able to bear that item.
 
Status
Not open for further replies.
Back
Top