Staredit Network

Staredit Network -> UMS Assistance -> Trigger not working
Report, edit, etc...Posted by Vampiir on 2007-01-25 at 20:35:19
Bring(CurrentPlayer, Exactly, 1, DoDgEr, Heal 1);
Command(CurrentPlayer, Exactly, 0, DoDgEr);

CreateUnit(1, DoDgEr, Heal 1, CurrentPlayer);
DisplayText("All dead players have been respawned!", 4);

This isnt working :\ how do I make a trigger that respawns ALL dead players when a unit (DoDgEr) comes to a location? and i mean ALL players that are dead, no matter if its ONE player, or 5... they all get resurrected if they do not own a DoDgEr
Report, edit, etc...Posted by fritfrat(U) on 2007-01-25 at 20:42:53
Change

Bring(CurrentPlayer, Exactly, 1, DoDgEr, Heal 1);

to

Bring(Force1, AtLeast, 1, DoDgEr, Heal 1);

Note that the players who are resurrected will get the message and that the reviver won't receive the message. You can get around this so the reviver receives a message as well, but based on the fact you had a problem with this simple trigger, I'd just stick with changing the message to "you have been respawned." It's not worth the extra effort just so the reviver has a message, too.
Report, edit, etc...Posted by Vampiir on 2007-01-25 at 20:49:32
but I want all players to recieve that message lol...
Report, edit, etc...Posted by Doodan on 2007-01-26 at 01:18:52
You'll have to make several versions of the same trigger with minor differences. So if, say, player 4 has lost a dodger, and player 1 brings his to the location, then the trigger will only work for player 4 if the conditions are met. You'll also have to have a version of the trigger just incase player 2, 3, 4, 5, etc., brings their dodger to the location. It'll be a bit tedious, but its the only way.
Report, edit, etc...Posted by DT_Battlekruser on 2007-01-26 at 01:26:50
Just the sort of thing you might want to look when troubleshooting your triggers before you come looking for help on SEN:

Bring(CurrentPlayer, Exactly, 1, DoDgEr, Heal 1);
Command(CurrentPlayer, Exactly, 0, DoDgEr);

Look at these conditions. They're mutually exclusive. Both cannot ever be true. This is a hint that you're not going about things the right way.

As Doodan said, you'll need a separate trigger owned by whomever to display a separate message to the person rescuing the dead people.
Next Page (1)