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.
[05:47 pm]
Ultraviolet -- zsnakezz
zsnakezz shouted: ultra you have any thought or notes on undead invasion?
I still haven't gotten a chance to play it yet unfortunately. I just downloaded, but today I'm working on a project with a deadline so won't be able to play it today
[04:59 am]
zsnakezz -- >:)
[04:59 am]
zsnakezz -- :)
[04:58 am]
zsnakezz -- somebody gets it
[04:58 am]
zsnakezz -- and its not all just numbers in my file screen
[04:57 am]
zsnakezz -- thank you for your comment though, good to know some people out there tried my map out
[04:57 am]
zsnakezz -- just kidding
[04:57 am]
zsnakezz -- ultra you have any thought or notes on undead invasion?
[2024-5-31. : 2:36 pm]
Wing Zero -- Bop em
[2024-5-31. : 2:36 pm]
Wing Zero -- Mods
Please log in to shout.


Members Online: Excalibur, Ultraviolet