HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit Upgrading Problem

06-17-2008, 08:09 PM#1
paulH
Once more, I am here with a problem which needs solving. Currently in my mod, I have a unit which can grow into another at a cost, kind of like the Scout Tower - Guard Tower thing. To do this, I turned the original unit into a structure, added the upgraded unit to it's "Upgrades To" setting and changed the original unit back to a unit.

So far so good, it works almost perfect. I have a slight problem, the original unit is a ground based unit with Hover movement. The upgraded version is a flying unit. The problem comes from when the unit is upgraded, as the upgraded unit retains the original units "Movement - Height". This, of course, looks exceedingly stupid, and try as I may, I cannot find a way to successfully change the units height to what it should be using triggers or the plain old Object Editor. Any help would be marvellous.
06-18-2008, 04:56 AM#2
Burning Rose
Have you Tried "Unit - Set Flying Height"? I don't have editor open but I'm pretty sure it's there in GUI...
06-18-2008, 03:34 PM#3
paulH
I have tried that, yes.
06-18-2008, 03:51 PM#4
Squally425
Have you tried the Obsidian Statue's "Destroyer Form" ability?
06-18-2008, 05:01 PM#5
paulH
No I did not.. hmm.. going to give that a go!

Edit:

Alright, I tried it abit. It is a good ability, in that it gets that thing I desired fixed. However, it comes with its own problems. Mainly the fact that it has no timer to see how long left till the change has occured. Neither does it allow you to edit the time needed between pressing the ability and it coming into effect, nor does it allow you to interrupt it. I suppose this could be editted using triggers.
06-18-2008, 05:38 PM#6
Squally425
Hmm, or you could use your original idea but add / remove the Raven form ability to the unit after the upgrade to set its flying height.

You can get more information about the Raven Form from this post:
http://www.wc3campaigns.net/showthread.php?t=81742
06-18-2008, 06:03 PM#7
paulH
Thats possible, though I must admit, I am pretty awful with triggers. Could anyone give me a helping hand with that?
06-18-2008, 06:10 PM#8
darkwulfv
It's very very simple.

Detect when the unit is done upgrading, then add & remove "Raven Form", and adjust it's fly height.

It's like, 1 event (detecting the upgrade), 1 Condition (Detecting the upgrade or upgraded unit as the one you want), and 3 actions (add raven form, remove raven form, adjust flying height)
06-18-2008, 06:30 PM#9
paulH
Hmmm, I was putting "Constructed Structure" rather than "Upgrade"... I feel so stupid.

Will give what you said a go.