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

Changing Range to Melee

Status
Not open for further replies.
Level 1
Joined
Jun 27, 2007
Messages
3
Is it possible to change from range to melee AND the new hero morph learn a seperate set of abilities as the old one? For example, range hero learns four abilities and melee hero learns another set of four abilities and when morphing, the user can use both sets of four depending on which morph they have?

Sorry if it's confusing

AZN_AURON
 
Level 9
Joined
Sep 8, 2004
Messages
633
Is it possible to change from range to melee AND the new hero morph learn a seperate set of abilities as the old one? For example, range hero learns four abilities and melee hero learns another set of four abilities and when morphing, the user can use both sets of four depending on which morph they have?

Sorry if it's confusing

AZN_AURON
You are kind of hijacking a thread here, mate. Good thing the autor's question got answered already.

Yes, this is possible, done through triggers and wit. The basics are really simple, create the 8 abilities you want the unit to have. Go to the "Ability" options for your map and disable the 4 abilities that the morphed unit would use.

Create the morph ability and complete the unit

Then, add a trigger that detects when the unit morphs; disable the 4 abilities currently active and enable the 4 morphed abilities. This effectively gives the unit a new set of abilities. Do remember to code the reverse process as well, upon morphing back. To make this multi-instance, you'd have to use either very complicated GUI, but preferably jass.
 
Status
Not open for further replies.
Top