HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Creating Units

11-08-2005, 12:09 AM#1
Sir Xavior
I am trying to make a map like Mercenaries from Starcraft. But I can't figure out how to make a unit disapear every time a person makes it, then replace with another unit. Any ideas?
11-08-2005, 10:15 AM#2
Anitarf
Please be more specific. How does a person make it, from where do you want it to dissapear?
11-08-2005, 11:59 PM#3
Sir Xavior
I wan the unit to disseaper/die from any where on the map but for only certain players. Then replace the unit with another unit at the same spot.

Example
I build a sorceress then the minute the sorceress is created. The Sorceress disapears then another unit come in its place.
11-09-2005, 09:41 AM#4
Anitarf
Then why not let that player train that unit directly rather than leting him train sorceress and then replacing them with that unit? Unless the unit that you get instead of a sorceress is a surprise...
11-10-2005, 12:41 AM#5
Sir Xavior
I don't want computer players to be able to create that unit. Only the player that picks that team.
11-10-2005, 10:00 AM#6
Anitarf
Then you can create an upgrade that replaces one unit with another (like the troll headhunter -> troll berserker upgrade) nad have it initially researched for that player.
11-11-2005, 01:07 AM#7
Sir Xavior
Do you think I coould do that when the player picks up an item?
11-11-2005, 07:23 AM#8
PlasticAngel
Here's a tip. Only make maps that are within your feeble minds limits.
11-11-2005, 07:28 AM#9
TaintedReality
lmao
11-11-2005, 01:46 PM#10
Ice_Keese
Ouch.

That was hard.
11-11-2005, 05:03 PM#11
Unknown6
allow me...

EVENT - A unit finishes training a unit
CONDITION - unit type of Trained Unit equal to unit type-sorceress
ACTIONS -
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Trained unit)) controller) Not equal to Computer
Then - Actions
Unit - Replace (YOUR UNIT) with a UNIT-TYPE using The new unit's default life and mana
Else - Actions
11-15-2005, 02:07 AM#12
Sir Xavior
Hey thanks Unknown6. This will really halp me.
11-16-2005, 02:04 PM#13
MrApples3
Dont really get the point. Are you just taking the lazy way out of making different races?

I'd find another way.