Warcraft III resources & community, 2003–2006 · archived

Upgrading units into units

18 posts
#1

Upgrading units into units

Hey does anyone know how to upgrade a unit into a unit? Kind of like in Werewolf where you can upgrade a unit into a warrior. Is it a trigger, a modified ability or some sort of custom spell? If it's not possible, I will be unable to do many maps, so please respond!
#2
It is probably a trigger and you will probably have to make a new unit in the object editor in order for each stage of upgrade. Something like this i would imagine

Event - Unit finsihes researching
Condition - Tech researched = Transform
Action - Pick everyunit (owned by owner of triggering unit)and do multiple actions
Loop-
IF/THEN/ELSE
IF - Picked unittype = "Transformer"
THEN - Replace picked unit with unit "Transformed"
ELSE - Do nothing


I used the names "Transform" to refer to the name of the upgrade that causes everyone to change. The name "Transformer" to refer to the original state of the unit and "Transformed" to refer to the altered state of te unit
#3
Yeah, this isn't requiring any triggers, its just that the base unit has the stat- Upgrades To- set for the next unit, each consecutive unit can upgrade to the next. Its like what you use to improve your main building in a melee game
#4
Chuckle, under the unit editor, it doesn't give the option "upgrades to" for units. Does anyone have a faster way than triggers?
#5
ok... are you trying to make it so that one upgrade changes all of your units? or just each unit can be upgraded individualy?
#6
He wants them to be upgraded individually, and no, It's not a trigger. :roll:
#7
oh yeah, if its individual, just use the object editor. I thought you wanted to research an upgrade that woudl effect all your units =p
#8
just use the object editor

under the unit editor, it doesn't give the option "upgrades to" for units



How should you "just use the object editor" to do this?
#9
Well if you want it to just upgrade from one to another just fill in the stat area that I said about before. If you want it to hit many units make it after an upgrade finishes it picks al units of type(old) and does
Replace picked unit with (new unit)
#11
ah i see, it seems only structures have that option, my apologies. maybe make your unit based off a structure? otherwise, you will have to give them a custom ability with a trigger, far as i can tell.
#12
How can you base it off a building? Do you mean make it a building? :?
#13
yeah i mean make it a building, and give it some movement. I am really not sure if that will work, I havn't had too much experience with the object editor, I am mostly in the trigger and terrain editor.
#14
That's like one of the only differences between a building, and a unit, though... it can't move. The only reason you sometimes see moving buildings is when a building's model is used.
#15
if thats the case, looks like you will need to do some triggering my friend = )