Staredit Network

Staredit Network -> UMS Assistance -> Lives
Report, edit, etc...Posted by (Dual)Archon on 2005-01-10 at 21:33:27
Sorry, But I Seem To Have A Problem Can Anyone Help Me With The When Zergling Dies Then It Comes Back????? Thanks.
Report, edit, etc...Posted by LS-Baba on 2005-01-10 at 21:37:35
if it's only one zerhgling you can make it so that a location is centered on the zergling . Then you can make it so when player suffers death of 1 zergling, create one zergling at the location centered on the zergling that died. Then make a trigger that resets the deaths back to zero .

edit off topic: hey your sig uses the same image as mine huh? disgust.gif
Report, edit, etc...Posted by KaboomHahahein on 2005-01-10 at 22:08:47
First set a custom score for the player. The score will be how many life they get. I chose 30 for mines.

Trigger
Description:
Costum Scores
Players:
¤ p1
Conditions:
¤ Always
Actions:
¤ SetScore(CurrentPlayer, SetTo, 30, Custom);


Then you do another tirgger like this.


Trigger
Description:
Subtracting lives
Players:
¤ P1
Conditions:
¤ Command(CurrentPlayer, Exactly, 0, Obstacle passer);
¤ Score(CurrentPlayer, Custom, AtLeast, 1);
Actions:
¤ SetScore(CurrentPlayer, Subtract, 1, Custom);
¤ CreateUnitWithProperties(1, Obstacle passer, Start 1, CurrentPlayer, 1);
¤ PreserveTrigger();


When they run out of lives...


Trigger
Description:
No more lives
Players:
¤ P1
Conditions:
¤ Score(Force1, Custom, Exactly, 0);
¤ Command(Force1, Exactly, 0, Obstacle passer);
Actions:
¤ Defeat();



When force ones has no more lives then they lose.
Report, edit, etc...Posted by DT_Battlekruser on 2005-01-10 at 23:46:31
QUOTE(LS-Baba @ Jan 10 2005, 06:37 PM)
if it's only one zerhgling you can make it so that a location is centered on the zergling .  Then you can make it so when player suffers death of 1 zergling, create one zergling at the location centered on the zergling that died.  Then make a trigger that resets the deaths back to zero .

edit off topic: hey your sig uses the same image as mine huh?  disgust.gif
[right][snapback]122831[/snapback][/right]


No, this will not work. The location should center on a zergling when it finishes each level of the bound. Then it will respawn at the start. If you constantly center, the you will respawn in the middle of an obstacle.
Report, edit, etc...Posted by chuiu on 2005-01-11 at 00:07:13
Who said it was a bound?
Report, edit, etc...Posted by DT_Battlekruser on 2005-01-11 at 00:07:52
Zergling respawning? Respawning and lives? Reeks of boundingness to me. *holds nose*
Report, edit, etc...Posted by sckor on 2005-01-11 at 04:48:57
If you want it to respawn where it last died, and its only one unit, use the same concept as LS Baba, except with one more condition

Trigger
Conditions:
¤ commands at least 1 'unit'
Actions:
¤ Center location labeled 'x' on 'unit' in anywhere
¤ preserve trigger


Trigger
Conditions:
¤ current player commands at most/exactly 0 'unit'
Actions:
¤ Create one 'unit' at 'x'
¤ preserve trigger


So that when the location will only center if you command a unit, and when it dies, it will still be where it was so that it would spawn where it died..........

Lives. If it was bound, use minerals and gas, or you can use custom score...
Report, edit, etc...Posted by Mini Moose 2707 on 2005-01-11 at 14:50:32
I think an Average skill mapper can figure out a basic trigger like this.

» Topic Locked
Next Page (1)