Staredit Network

Staredit Network -> UMS Assistance -> Unit Giving Trigger
Report, edit, etc...Posted by ShadowBrood on 2004-10-25 at 01:26:35
Alright alright heres the idiot proof explanation to what I'm asking. How can you make SC detect if a player is in the game or not.
Report, edit, etc...Posted by (U)Bolt_Head on 2004-10-25 at 01:27:02
You don't need to.
Report, edit, etc...Posted by ShadowBrood on 2004-10-25 at 01:29:44
Ok, I know that it goes from top to bottom. What I needed to know from the start is if you can make SC detect if a player is there. I have tried giving a player owned by player 1 to a series of people but it only gave it to player 1 who is non existant.
Report, edit, etc...Posted by (U)Bolt_Head on 2004-10-25 at 01:31:24
You don't need to know if the player is there or not. If the player isn't there his trigger will not fire. BAM DETECTION.



Trip down memory lane
QUOTE((U)Bolt_Head @ Oct 24 2004, 11:58 PM)
Force 1
Conditoins:
-Player 7 commands at least one DT
Actions:
-Give one DT owned by player 7 to Current player

That alone will give the DT to the lowest numbered player (because of trigger order).  If now you didn't ask for this but this would give it to the next remaining player if the owner leaves the game.

Force 1
Conditions:
-Player 12 brings at least one DT to 'blah"
Actions:
-Give all DT owned by player 12 to player 7

Then after it is given back to player 7 The original trigger will give it to the next player.   Now technacly you don't need a preserve trigger on ither one lol.
[right][snapback]89598[/snapback][/right]

QUOTE((U)Bolt_Head @ Oct 25 2004, 12:09 AM)
Because of trigger order triggers are checked in the order of the players. 
IE P1 > P2 > P3 > and so on.

When the game starts player 1 runs his triggers first by default.  If he is there his trigger will detect the DTs presence and give the DT to player 1.  The rest of the player's triggers will not fire because the DT is no longer owned by P7 and the conditions are false.

If player 1 later leaves then his DT will become owned by player 12 as an effect of the game.  The second trigger will give the DT back to player 7.    Now even though player 1 fired the first trigger at the start of the game doesn't mean the other players can't.  After the DT is given to player 7 then the first trigger can fire for the next player in line the same way it did when the game started.

Oh yeah I forgot make sure the trigger i listed second is ON TOP of the other.
[right][snapback]89601[/snapback][/right]
Report, edit, etc...Posted by ShadowBrood on 2004-10-25 at 01:35:05
Oh I see what you mean... blushing.gif
/emote goes in a corner.

Anyways. THANK YOU BOLT!!!!
Report, edit, etc...Posted by (U)Bolt_Head on 2004-10-25 at 01:36:39
Mmmm, must of been the memory lane...
Report, edit, etc...Posted by ShadowBrood on 2004-10-25 at 01:38:04
Actually it was the way you re explained the detection thing.
Report, edit, etc...Posted by brutetal on 2004-10-25 at 01:39:22
Well I thought the detection thing was quite clear in the first place.
Report, edit, etc...Posted by ShadowBrood on 2004-10-25 at 01:42:35
1)English isn't my native language.
2)That's the reason I can put phrases together the way a native speaker could.
Next Page (2)