Respawn Problem
May 30 2009, 8:08 pm
By: death5k  

May 30 2009, 8:08 pm death5k Post #1



Im having a problem with a sniper game. When you die, your supposed to respawn at a location and its always like that so its not like you only respawn 3 times like lives, can anyone help me to teach me how to do that? :omfg:



None.

May 30 2009, 8:13 pm Madroc Post #2



Here's a simple, effective way to do it:
Code
Conditions:
Current player COMMANDS at most 0 [sniper]

Actions:
CREATE 1 sniper for current player at [location of your choosing]
Preserve Trigger

This is assuming each player only has 1 sniper in play at once (excepting if it is dead, in which case you must have 0).
If this is not the case, there is another slightly more difficult way to do it (but still way easy).




None.

May 30 2009, 8:39 pm death5k Post #3



Thanks but i got another problem. The computers have the set alliance status but they still atk you and the units wont stay there.

Edit: The snipers still seem to be mass spawning. The harder way?

Post has been edited 1 time(s), last time on May 30 2009, 8:47 pm by death5k.



None.

May 30 2009, 8:48 pm ForTheSwarm Post #4



Conditions:
Current player suffers at least 1 death of Sniper.

Actions:
CREATE 1 sniper for current player at [location of your choosing]
Set deaths for current player: subtract 1 for Sniper.
Preserve Trigger



None.

May 30 2009, 9:08 pm death5k Post #5



both of those work but it just keeps on spawning. Like some mass game or something. Its supposed to spawn only one.



None.

May 30 2009, 9:33 pm Madroc Post #6



Both my way and the harder way FTS posted should work. Post your respawn trigger, exactly, and we'll see what you're doing wrong.



None.

May 30 2009, 9:41 pm death5k Post #7



Conditions:
Current Player has suffered at least 1 deaths of any unit

Actions:
Create 1 Default Sniper at Respawn for Current Player
Preserve Trigger
Comment: Respawn

Edit: Oh i think he edited and i forget a line.



None.

May 30 2009, 9:49 pm Madroc Post #8



Yup, just add the "subtract 1 death for sniper" and you should be good to go. Actually if you want to do the "at least 1 deaths of any unit" you're going to want to "subtract 1 death for any unit."

Keep in mind that if you're going to do the "at least 1 death of any unit," it will glitch if ANY other unit of that player dies.

As for the set alliance problem, make sure that you have a trigger where the computer is the player selected under "players," and the action is to "set alliance status for Force [actual players] - set to Ally."




None.

May 31 2009, 1:53 am rayNimagi Post #9



You can use buildings or units set off in a corner to keep track of lives.



Win by luck, lose by skill.

May 31 2009, 1:54 am Falkoner Post #10



Quote
You can use buildings or units set off in a corner to keep track of lives.

Buildings/units in a corner? GROSS! Use Death Counts :crazy:



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[03:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[03:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[03:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[03:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
[2026-7-23. : 1:40 am]
Oh_Man -- tthen u come to SCBW and it's like - upload WAV, play WAV.... sigh why cant it be that easy
Please log in to shout.


Members Online: MarineElite