HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Item ability 'Fly'

07-13-2004, 08:03 AM#1
WTFish
How could I make it so that when a hero uses an item, he will be raised up into the air and become able to fly over objects such as trees. If the hero has initial movement type set to 'fly' he will already be able to go over objects. Replace unit doesn't seem to work smoothly. Some sort of metamorphosis? The hero still has to be able to use its abilities and have the same stats too...

Hope someone can help. Thanks.
07-13-2004, 08:10 AM#2
HexenLordX
Never tried it before.. or thought about it for that matter. Does a ground unit still walk over trees if his movement type is fly? Never tried it.. just wondering.

Make a trigger with event, unit uses item or whatever
conditions are item-type comparison.. manipulated item equal to whatever.

Add these actions:

Actions
Unit - Add A flying unit classification to (Triggering unit)
Animation - Change (Triggering unit) flying height to 150 at 100.00

You can change the numbers however you want.

note: not 100% sure this works.. simply because ive never tried it. but good luck.
07-13-2004, 08:18 AM#3
WTFish
Just tried that and it didn't work unfortunately. I think all changing the classification does is allows certain other units to target it with attacks and spells.
07-13-2004, 08:27 AM#4
HexenLordX
Actually this kinda interests me. I look at all of the movement types and I realize I don't know what some of them do. Take hover for example. Would this mean that the unit still has collision with doodads, but if set to a certain height can fly over them? Maybe something similar for float. I was thinking if this is the case, then you can set the height to 0 and give it one of these movement types, then use the action I gave for changing units flying height when the item is used.. changing it just high enough for the unit to fly over trees. I dunno if this is the case, as I've never experimented with these movement types, and realize I've never even thought about them before. I think I'll go test it out later. It might be useful for me in the future...
07-13-2004, 08:47 AM#5
WTFish
Hmm.. Change unit flying hight can only apply to units that have their movement type already set to fly. I think some sort of metamorphosis involving replacing the unit with an identical one that had flying movement type. Now where have I seen that.... o lol, some hero has an ultimate that does that in Dota. I think that would be the best way to do it... but would the change be seamless or would you have to use some big flashy special effect to cover up the switch?
07-13-2004, 08:53 AM#6
HexenLordX
I dunno. I never thought about it. Maybe the unit will just kinda re-appear in the air.. dunno though. I'm not sure about this, but isnt there a unit out there that can go from foot to flying using an ability? I remember someone using that to change their unit from foot to flying. I can't remember who did it or how they did it. I'll go do a quick search for ya.
07-13-2004, 09:42 AM#7
kagashin
Quote:
Originally Posted by HexenLordX
I dunno. I never thought about it. Maybe the unit will just kinda re-appear in the air.. dunno though. I'm not sure about this, but isnt there a unit out there that can go from foot to flying using an ability? I remember someone using that to change their unit from foot to flying. I can't remember who did it or how they did it. I'll go do a quick search for ya.


yes there was its the orical dude medivah you could usse him but that would limit who can and cant use the flying ability your best bet is to use ome fancy trigger work or find someone whos good with JASS
07-13-2004, 01:14 PM#8
sATARa
I think you could make the unit its supposed to transform into have very low flying hight, and then change it hight smoothly with that trigger from above...
And you could also try that ability those UD things have... what are they called... uhh... the things that heals or regenerates mana, and can transform into that flying creature ... lol whats it called?
07-13-2004, 01:37 PM#9
th15
The only way to change movement types is to morph the unit somehow (even root is mutation of a morph spell in that it requires you to have 2 units in the object editor).

Be warned, using any fixed-timed (like avatar) morph spell is dangerous when changing a unit to flying. If a unit's morph timer runs out while it is on non-ground pathable terrain, it will crash the game.
07-13-2004, 03:45 PM#10
Anitarf
Quote:
Be warned, using any fixed-timed (like avatar) morph spell is dangerous when changing a unit to flying. If a unit's morph timer runs out while it is on non-ground pathable terrain, it will crash the game.

A good way to avoid that would be to have a dummy spellcaster unit cast a spell based on ensnare (only without art) on the flying hero right before the timer on the metamorphosis runs out; the ensnared unit will move instantly to the nearest pathable terrain it can find, which may look wierd, but at least it doesn't crash the map when the unit morphs back to a ground unit.

Other than that, you don't need much triggers, I think metamorphosis has a movement-height transition time, which allows your hero to lift of the ground seamlessly (probably).

Nevertheless, you would need a different ability and a different item for each hero, and change the item to one corresponding with the hero with triggers whenever a hero acquired it. You would need an item-type and a unit-type variable array to do the hero-item matching. Kind of a lot of work, but the effect just might be worth it.
07-13-2004, 04:05 PM#11
HexenLordX
Quote:
Originally Posted by th15
The only way to change movement types is to morph the unit somehow (even root is mutation of a morph spell in that it requires you to have 2 units in the object editor).

Be warned, using any fixed-timed (like avatar) morph spell is dangerous when changing a unit to flying. If a unit's morph timer runs out while it is on non-ground pathable terrain, it will crash the game.

Well.. couldn't UNROOT be modified to allow the user to lift off of the ground, and since it doesn't have a time limit, it couldn't crash the game. Btw, for timed spells like metamorphosis, can you set the duration to 0 and make it indefinite?
07-13-2004, 06:08 PM#12
ForgottenLight
You could use a spell based off Storm Crow form, and make is so the button doens't show up, and then have a trigger that orders your Hero to use the custom StormCrow form when the item is used...
07-13-2004, 06:27 PM#13
HexenLordX
Quote:
Originally Posted by ForgottenLight
You could use a spell based off Storm Crow form, and make is so the button doens't show up, and then have a trigger that orders your Hero to use the custom StormCrow form when the item is used...

I do believe that's what I was thinking of when I posted this:

I'm not sure about this, but isnt there a unit out there that can go from foot to flying using an ability? I remember someone using that to change their unit from foot to flying. I can't remember who did it or how they did it. I'll go do a quick search for ya.

Someone out there was talking about using that ability to make their hero fly/land. I've seen similar abilities used in maps before, and I'm probably going to try that in my own map once I get it working a bit more. Thanks.
07-13-2004, 06:27 PM#14
Anitarf
You can't just make a button "not show up".

Kleptik, read my post above, try it with only one hero/item, and see if it works...
07-13-2004, 08:48 PM#15
sheep_killer_zp
the advanced world editor has a metamorphosis option but u gotta trigger the animaition urself.
EDIT: oh ya and you can always use replace but change the units flying hight so it looks like walking, then do the fly animaition.