HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Enabling ancients to train units while uprooted?

07-17-2009, 12:56 PM#1
bearkin
When I look for an ancient in the object editor, I can find only one version of the building, and not one for the uprooted and one for the rooted version of each ancient. So how do I get to change the properties of the uprooted ancients?

Also, I don't want the units that would be built, to pop out instantly, by putting them into the "Techtree - Units sold" -field (normal unit's don't have the "Techtree - Units trained" -field AFAIK, I don't know if the uprooted ancients would act like normal units here or not).

I would be grateful for any advice.
07-17-2009, 02:12 PM#2
Alevice
You will need a different morph skill. Root/uproot is not a proper morph skill per se (it doesn't turn the unit inot another type, only alters current unit type properties), and has hardocded behaviour (uprooted buildings can't use spells nor any fun thing normal buildings can do other than move and attack).
07-17-2009, 08:07 PM#3
Anopob
^ Eat Tree isn't a spell?
07-17-2009, 09:11 PM#4
Alevice
It's the only exception to the rule I have found. Try any other spell and tell me that to the face again.
07-17-2009, 09:52 PM#5
Anopob
Oh, okay.

On-topic: You CAN change the attack of the ancient when uprooted, not sure about the other stuff. Attack #2 = attack when ancient is uprooted, attack #1 = when rooted. Movespeed obviously is like this too, but I don't think you can change things such as armor type.
07-17-2009, 10:17 PM#6
DioD
root\uproot is a bit too hardcoded, dont use it, there is no alternative skill for this, but you can use chaos to undo negative effects like spells disable.
07-19-2009, 02:00 PM#7
bearkin
Many thanks for the replies.

But even if I would morph by using some other method, I noticed that I'd still have a problem: I want the building to be able to move, attack, and build at the same time. This however doesn't seem to work.

Is there some way to fix that problem? Could it be possible to somehow make the training process to be executed by triggers? With a progress bar, using something like those progress bars on summoned units, avatar and metamorphosis etc? Seems incredibly hard for me though.

If you have any ideas, then please do enlighten me!
07-19-2009, 04:03 PM#8
Rising_Dusk
Quote:
Originally Posted by bearkin
But even if I would morph by using some other method, I noticed that I'd still have a problem: I want the building to be able to move, attack, and build at the same time. This however doesn't seem to work.
Sure it does. Use bear form as your base and have the rooted ancient turn into a different unit type that is the unrooted ancient. The both of them can build stuff if you give them the capacity to.

It seems, though, that you want them to move, attack, AND build at the same instance, though. That simply cannot happen. You'll need some tricky dummy unit copy hoodoo in order to simulate the attacking and building at once. And if you want the whole thing to move while those two are happening, it's going to look silly, but might be possible. It'd really take a bunch of code and patience to try and make it look something proper.
07-19-2009, 04:08 PM#9
Alevice
I guess you could take a look to cosmicat's Reaver thing. I'm almost certain he posted it in the Triggers and Scripts section.