PDA

View Full Version : Bound Death


SuiCidAl-KiSmEt
08-17-2005, 9:52 PM
Im trieng to make so when a Zergling dies, it leaves a Uraj Crystal (named 'Save Me' placed on the spot they died). And when an allie goes to the their crystal they get revived (makes a new zerging in the spot they died.)

When I tried to do that is just makes unlimited crystals in the middle of the map. And the whole reviving thing never works. Can anyone post the triggers i should make?

LegacyWeapon
08-17-2005, 10:31 PM
You want to constantly center a location on the Zergling. Then when they no longer command a Zergling, and they don't command a Crystal, create 1 Crystal at that location.

When another player brings at least 1 Zergling to the location of the Crystal, then revive that Zergling.

SuiCidAl-KiSmEt
08-17-2005, 11:38 PM
So its

Condition:
-Player 1 Commands exacly 0 zergling
-Player 1 Command Exacly 0 Uraj Crystal
Action
-Center veiw at '1' for 'Zergling' at 'anywhere'
-Creat 1 Uraj Crystal at location '1'
-Preserve Trigger

Ya, already did that, but when it Center View on a zergling when the zergling is already dead\gone, it cant find the zergling so it ends up on making Urajs in the middle of the map.

LegacyWeapon
08-18-2005, 12:59 AM
You want to constantly center on it while the Zergling exists. And then when it no longer exists, you don't want to move the location again. You just want to spawn the Crystal.

MidnightGladius
08-18-2005, 5:20 PM
Triggers are as follows:

Keeping track of the Zergling:

C: Player controls at least 1 Zergling
A: Center Location P1 on Zergling at Anywhere
A: Preserve Trigger

[This causes the trigger to center a location on the ling, but only when it's alive. Your spawn-at-center situation is because when the centered-on unit doesn't exist, the trigger will center the location in the middle of the target location, Anywhere, in this case].

Creating The Crystal:

C: Player controls at most 0 Zergling
C: Player controls at most 0 Save Me
A: Create one Save Me at P1
A: Preserve Trigger

[That's pretty straigtforward and self-explanatory. Now, as the Crystal does not move, and the location won't have gone anywhere due to the condition, we don't need to center a new location on the crystal]

Ressurection:

C: Allies bring at least 1 Zergling to P1
C: Player controls at most 0 Zergling
C: Player controls at most 0 Save Me
A: Create 1 Zergling for Player at Save Me

[And there you have it]