• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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