PDA

View Full Version : Need some help with unit creation...


Valjean
06-29-2004, 5:50 PM
Okay, I'm making a map with Ultralisks and Tanks, 48 for each player. They have all the upgrades and stuff.

Anyway, I want it so every time one of your unit's dies, you get another at the a set location which is next to your structure/base.

Here is the trigger I've been using:

Conditions:

-Foes kills exactly 1 (insert unit here)

Actions:

-Create 1 (insert unit here) at "Location" for Player

When it didn't work, I changed it to this:

Conditions:

-Foes kills exactly 1 (insert unit here)

-Always

Actions:

-Create 1 (insert unit here) at "Location" for Player

ZeroDarkStar
06-29-2004, 6:04 PM
You'll have to use a death counter. Have it go like this:


Players: (Any Player)

Conditions:
Current Player suffers 1 death of (unit).

Actions:
Subtract 1 death of (unit) for current player.
Create 1 (unit) at (location) for (current Player).
Preserve Trigger.

Valjean
06-29-2004, 6:06 PM
Ah, thanks much. I'll try that. ^_^

Kejardon
06-29-2004, 6:40 PM
Actually, I think a more reliable trigger would be

Tank Players
CONDITIONS:
Current Player controls at most 47 tanks
ACTIONS:
Create 1 tank for current player at Location 1
Preserve Trigger

Ultralisk Players
CONDITIONS:
Current Player controls at most 47 Ultralisks
ACTIONS:
Create 1 Ultralisk for current player at Location 2
Preserve Trigger

ZeroDarkStar
06-29-2004, 6:42 PM
Mine saves strings. :)