HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit upgrades to a Unit, Possible? How?

05-27-2003, 06:46 PM#1
a1strank
Possible? How? :bgrun:
05-27-2003, 07:29 PM#2
Guest
I haven't tried this but cant you just pick upgrades into in the editor? (UMSWE) Or edit a spell like bear form...
05-27-2003, 07:49 PM#3
Dead-Inside
Trigger-based = easiest.
I don't have time ATM (I have time a few times to few, like wordplay btw?).
05-27-2003, 07:59 PM#4
a1strank
there is no "upgrade to" thing on units, only on buildings, so....... need help plz
05-27-2003, 08:07 PM#5
Duroth65
Heres what i did:
1. doing this will kill (wont work/will be units) some buildings
2. you create a Custom Unit and as the bace for it choose a building that has upgrades (town hall/necroplis/etc...)
3. give it the stats you want but keep the upgrade part
4. now go to the tir 2 of whatevetr unit you picked and change it to the stats you want (the unit will become this and it will be the upgraded verson)
5. change the tir 3 building to the stats you want.

Now i dont sugest you use this in a normal game where the teams build as normal sence the buildings when upgraded will be the Unit but for other maps it can work.
05-28-2003, 03:46 AM#6
Guest
Since im not at home i cant explain it properly but here goes:
1. make the basic unit - the unupgraded one.
2. make a unit called upgrade - with a building time as long as the upgrade should take!
3. Make the upgraded unit.

Make the unupgraded unit able to train the "upgrade" unit.

Now make a trigger:

Event:
A unit (upgrade) has been trained
Condition:
-none- (Maybe you should make a Unit that trained triggerunit equal to) - but i dont think its necesary.
Action:
Remove trained unit
Change unit that trained triggering unit into Upgraded unit
Add special effect add a point (Just to make it fancy) :)

This should work! ( I think... :/ )
05-30-2003, 03:21 AM#7
a1strank
what trigger or where is that action to change the unit to trained unit?
05-30-2003, 03:26 AM#8
a1strank
ok i have someting like this:
Event - Unit - "Upgrader" Finishes training a unit
condions - none
actions - Unit Remove (trained unit) from the game
Unit - Replace Triggering unit with a (unit-type of (trained unit) using the old unit's relative life and mana.


what i need is to set a trigger to remove "upgrader", i don't know how to do that. when i train a unit from the uprgrader, the upgrader will still there, it won't be gone. i need help thx
05-30-2003, 06:16 AM#9
Dead-Inside
Umm... No, you are wrong about that.
You first remove the initially trained unit, then you create one of exactly the same with the traning units life and mana.
If you'd read your own triggers you'd see that.
"Replace Triggering unit with a (unit-type of (trained unit)" = You get an upgrader (the unit who was trained).
You should also add a condition if there are more units trained.
"If trained unit = X".

Regards
05-30-2003, 09:58 AM#10
MidNightPaladin
If youre willing to do someth not very basic you can just change the info in UnitMetaData.slk just change upgrades to unit make it 1 instead of 0 thats it
05-30-2003, 10:13 AM#11
Starcraftfreak
Wait for TFT! Think of the Headhunter Berserker in TFT!
05-30-2003, 10:40 AM#12
ShadowElf2002
Yes the headhunter=>berserker is an upgrade which changes all the units on your map to another.. However I doubt you want to wait that long. So I suggest like others using triggers.

Unrelated side note: Dead-Inside your PM box is full and I need to talk to you... could you clear that out so that my poor message can get to you?
05-30-2003, 11:17 AM#13
ChrydGod
Or you could just use my enhancer from the depository ^^
Using this allows you to upgrade one unit into another.


The only problem is that you sometimes get issues with spells and abilities if they differ too much.

I acually use this method to upgrade heros in my Cube NE, fixing the ability problem with replacing the hero with the same unit when he finishes upgrading.

That works like a charm, without a glitch. You can check it testing my map (try on single player with cheats like warpten & greedisgood 10000 it will allow you to make the hero summoner and summon the Cubic hero & upgrade it) it even demonstrates a hero morphing ino a flying hero with that method.


Regards
05-30-2003, 12:38 PM#14
Vexorian
Just Got An IDea
1) Make Unupgraded Unit
2) Make Upgraded Unit
3) Make An unit called upgrade
4) Give a Building the ability to train the upgrade

Variables
Mana : A real Variable
HP : A Real Variable

====Trigger1
Events:
Event - Unit - "Building" Finishes training a unit
condions - Unit type of Trained Unit equal to Upgrade
Actions:
-Remove Trained Unit
Pick Every Unit in Units owned by (Owner of Triggering unit) and run Trigger 2 (gen)

===Triger2
Actions
IF Unit type of picked unit not equal to Unungraded Unit then Skip remaining actions else Do nothing
Set Mana = Mana of Picked Unit
Set HP = Health of picked Unit
Remove Picked Unit
Create a Upgraded Unit in position of Picked unit facing blah
Set Mana of Last Created unit = Mana
Set Health of Last Created unit = HP