Staredit Network

Staredit Network -> UMS Assistance -> Player 12 Troubles
Report, edit, etc...Posted by LegitXeris on 2004-11-12 at 00:39:23
face another problem; consequently, ...... If anyone kills a unit where its owner left the game or dropped out, then there would be an infinite spawn of that unit. can someone tell me how to auto kill all units owned by a player who left game or dropped ??

I know there is a trigger where it could give those units to other players but i don't want to distribute them

Legitxeris
Report, edit, etc...Posted by SA_Max71 on 2004-11-12 at 00:49:13
QUOTE(LegitXeris @ Nov 11 2004, 09:39 PM)
face another problem; consequently, ...... If anyone kills a unit where its owner left the game or dropped out, then there would be an infinite spawn of that unit. can someone tell me how to auto kill all units owned by a player who left game or dropped ??

I know there is a trigger where it could give those units to other players but i don't want to distribute them

Legitxeris
[right][snapback]97695[/snapback][/right]

Yes, there is. Now, assuming you aren't using any units that belong to player 12 (because player 12 is considered a "neutral player"), this should work.


Trigger
Description:
this trigger should activate once a player leaves during the game. (or, players 1-8.)
Players:
¤ any player that leaves after starting the game
Conditions:
¤ neutral player(s) bring at least 1 any unit to anywhere
Actions:
¤ remove/kill all any unit (or give to player/force x).
¤ presever trigger


EDIT: I made the trigger above make a tad more sense
Report, edit, etc...Posted by Ultimo on 2004-11-12 at 00:55:49
Mmm....not sure if that would work.
Maybe just use " Player 12 commands at least 1 unit"
"Kill all units owned by Player 12 "
Assuming you don't need him for any other reason.
Report, edit, etc...Posted by SA_Max71 on 2004-11-12 at 00:59:04
QUOTE(Ultimo @ Nov 11 2004, 09:55 PM)
Mmm....not sure if that would work.
Maybe just use " Player 12 commands at least 1 unit"
"Kill all units owned by Player 12 "
Assuming you don't need him for any other reason.
[right][snapback]97698[/snapback][/right]

this would work ONLY if a trigger was made that would give any unit that is owned by a player that leaves during the game to player 12. In the interest of keeping it simple, I recommend going with my trigger stated above.

ADDITION: Utimo, please read the posts above before you make a post... someone else might have given a better answer than you could give smile.gif. jump.gif

ADDITION AND EDIT: does my answer answer your question LegitXeris?
Report, edit, etc...Posted by Drakiel on 2004-11-12 at 01:18:01
Well I don't know ANYTHING about P12 triggers (yea, yea advanced whatever. But I'm better than average, so yea...)

Anyway, Indeed, both of those would work but...
That wouldn't kill ONLY the player who left, that would kill... EVERY p12 unit.

To add to the question.
Assume p12 has some neutral units just laying around.... an RPG perhaps, the town INN.
And a player commanding an army leaves...
How would you remove ONLY the player who left's units?
Report, edit, etc...Posted by RiShiN.rK on 2004-11-12 at 01:24:41
QUOTE
How would you remove ONLY the player who left's units?


I don't think you can but you could just have the trigger remove all the units that the players could have unstead of just removing all units

and about all that player 12 brings stuff... why not just make the condition always wink.gif
Report, edit, etc...Posted by LegitXeris on 2004-11-12 at 02:09:05
Hey guys,

I tried the proposed triggers.... it doesn't work ;-(

i used

players:
player 12, neutral players

condition:
current player brings 1 any unit to "arena"

action:
kill all unit for current player at "arena"

is it possible the player who leaves or drops is not player 12 or neutral player ?

LegitXeris
Report, edit, etc...Posted by LegacyWeapon on 2004-11-12 at 06:09:36
The bring any unit doesnt work for p12 for some odd reason. I've experimented and you have to have

all units that are left after someone leaves is ALWAYS player 12 unless you gave them away.
Trigger
Conditions:
¤ Always
Actions:
¤ Kill all of unit* for player 12.
¤ Preserve trigger.


Where unit* is the unit that you want to be killed.

Otherwise you need to state the unit in the condition. But the condition as always should work just fine.
Report, edit, etc...Posted by (U)Bolt_Head on 2004-11-12 at 09:22:33
I thought bring worked just fine. Or at least command does. When a player leaves the game his units are automaticaly given to player 12. (thats player 12's purpose)

You can't try to refer to player 12 as "neutral" it doesn't work. Thats why they made the player 12 triggers in the first place.

SA_Max71: what you posted is wrong, and on top of that you got onto the person who had a correct suggestion.
Report, edit, etc...Posted by Ultimo on 2004-11-12 at 17:54:10
Hey, thanks Bolt_Head biggrin.gif
To obtain the player 12 conditions, you can either download a set of pre-made triggers, or edit the triggers in starforge.
The zip can be found here.


Trigger
Description:
P12 Kill Trigger
Players:
¤ Player 12
Conditions:
¤ Current Player brings at least 1 any unit to Anywhere
Actions:
¤ Kill all units for P12
¤ Preserve trigger.
Next Page (1)