Warcraft III resources & community, 2003–2006 · archived

Upgrading a unit to a unit?

22 posts
#1

Upgrading a unit to a unit?

I've been searching for how to do this for a while, and I've found nothing so far, so here it is. How do I have a unit upgrade into another unit, like in dark deeds where the young man can upgrade into a milita.

Please help me!
#2
Try looking at the troll berserker upgrade? ^_^
#3
No, that's really not what I wanted. The unit upgrades itself sort of like a building. I found an unprotected map this was done on, and as far as I can tell, it's not done in the character editor, it's not an ability, and it's not a trigger. :?

can anyone help me?
#4
Yeah, I can. It's the tinker's ultimate. In the spell, all you need to modify is the starting out unit, and the unit it upgrades to. Then make that same spell again, just reverse them. Then give the spell to your unit.
#5
Ah. Then you were talking abou that. Next time be more specific greenbaron. I saw your question but i never figured out what you mean.
#7
Why don't you just base the upgrade off a building upgrade? (Necropolis to Halls blabla)
#8
Umm.
There must be a trigger in there somewhere.
The best way i can think of doing it is make the unit have a unit it sells (Object Editor-Techtree-Units Sold), ie the Young Man is in actual fact selling the worker. Then there is a trigger which goes something like this:

UpgradeYoungMan
Events: A unit Sells a unit
Conditions: Unit type of Selling Unit equal to Young Man
Actions: Unit- Replace Selling Unit with Sold Unit

Hmm. Thats how i would do it. I can't remember whether it takes time to become a worker/warrior (does it? if so i'm stuffed)

Bort
#9
hmmmmm still i agree that its the tinker's ulti.... well maybe not but... :?
#10
BortUmm.
There must be a trigger in there somewhere.
The best way i can think of doing it is make the unit have a unit it sells (Object Editor-Techtree-Units Sold), ie the Young Man is in actual fact selling the worker. Then there is a trigger which goes something like this:

UpgradeYoungMan
Events: A unit Sells a unit
Conditions: Unit type of Selling Unit equal to Young Man
Actions: Unit- Replace Selling Unit with Sold Unit

Hmm. Thats how i would do it. I can't remember whether it takes time to become a worker/warrior (does it? if so i'm stuffed)



Bort

ya that soulnds about right
in a lot of pre tft (the frozen throne) maps people use it like this
events:a unit levels up
conditions:unit=level 10 or is it 9 unit=red man
events replace red man with big red man using relitive life and mana

or the trigger goes some thing like that...
#11
That still doesn't seem to be right. But the results that I got might help someone figure out what's going on.

http://img32.echo.cx/img32/5457/help7vn.gif

I used the base unprotected map that I have, and I used a unit that was already able to be upgraded. The way I did it with the units selling the unit didn't work in that 1. the new unit warped a few feet away from the old one, and 2. that the other upgraded units kept the same units selling. It's kind of confusing so I added the picture.
#12
ok, to a unit you want changed do next:

Go to object editor - click on peasant (example) and go under techtree - units sold, and add a unit you want, in this case I put a footman.

Now create a trigger:

Untitled Trigger 001
    Events
        Unit - A unit Sells a unit
    Conditions
        (Unit-type of (Sold unit)) Equal to Footman
    Actions
        Unit - Remove (Selling unit) from the game
        Unit - Create 1 Footman for (Owner of (Buying unit)) at (Position of (Selling unit)) facing Default building facing degrees
#13
my trigger works better: for yours (elfwarfare) youll end up with 2 footmen, onr at a different position,and it wont work for any upgrade (ie to young man or militia)
#14
1st: no it will not, i tested it.

2nd: nope, only if you give an unit to another to sell it, and of course we want that..... <_<

the unit wouldn't be affected if it doesn't run an event, so the trigger is good.....

EDIT: and this was a quick trigger, I don't have time for a real triggering now, so ill create a better one tomorrow, when i have time...
#15
wait..I think this is what you want
eh try the unit to--->building then modify tech tree upgrades to section keep at mind that what ever it upgrades to becomes a building even if thats not a normal classification it has some nasty draw backs that being among them here are 2 more
1)new unit catches fire when its low on hp...lol
2)if unit is a hero when it dies it wont disapate and wont revive at an altar dont know about triger revive ...I hope this is what you wanted...