Ok. Here we go.
Let's say I'm making a unit that's just like the Druid of the Talon (ground to air), and can reverse at any time.
- Make a spell based off of DotT (druid of the talon)'s Storm Crow Form.
- Create a new unit that flies. This will be the unit our unit will become. Modify it to your liking. Make sure the following fields are noted as follows, so our transformed unit is actually a flying unit:
-"Movement - Height" Set this to however high you want your unit to be flying 250-300 is good.
-"Movement - Height Minimum" This is how low your unit can fly. 90-150 is good.
-"Movement - Type" This needs to be set to 'Fly'
-"Combat - Targeted As" Tick off the 'Air' box, and untick the others. - Ok, we have our flying unit. Let's name it "Flying Sample".
- Go back to your custom spell.
- In the field "Data - Morphing Flags", set them to: Uninterruptable and Immediate Take Off. (Do the same for the other levels if this spell will be leveled)
- Now go the the field "Data - Normal Form Unit". Look around for the GROUND unit who will be transforming, and set this value to that unit.
- Now go to the field "Data - Alternate Form Unit". Look for the FLYING unit we made. Set this value to that.
- Modify this spell however else you'd like. (Mana cost, icon, name, etc.)
- Give this spell to BOTH the ground and air unit.
- Enjoy!
This should work for those types of spells. (Turn on/off transformations.) It's been forever since I've done one, so I'm not 100% sure.
Also, note this: If it's a leveled ability, and the unit your hero transforms into changes, make sure that the "Data - Alternate Form Unit" field values are set to match those units.
Now, if you want a metamorphosis type spell (Transform, ends after X seconds), do this:
- Create your unit like instructed above
- Create a custom spell based off of metamorphosis
- Modify the metamorphosis spell as follows:
-In the "Data - Alternate Form Unit" field, change it to our AIR unit.
-In the "Data - Normal Form Unit" field, change it to our GROUND unit.
-Create a buff that you'd like to use for this spell (The name that will appear in the countdown bar. This is optional.)
-If you made a custom buff, go to "Stats - Buffs" and select your buff.
-If you want a bonus amount of health to go onto the transformed unit, modify "Data - Alternate Form Hit Point Bonus" to whatever you'd like. (0 if you want no HP bonus)
-Set the cooldown and duration to whatever you'd like it to be. - Now modify the metamorphosis spell however else you'd like (mana cost, name, etc.)
- Give this spell to the GROUND unit only!
- Make 100% sure the flying unit is, in fact, a flying unit.
- Enjoy!
A final note: Make sure that if this is a hero spell, the field "Stats - Hero Ability" is set to true. Set it to false if this is just a unit ability (not leveled, etc.).
That should do it for you. if something doesn't work, post here and I'll see if I made a mistake.