HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

player leaves event - how to specify if any player leaves?

06-15-2004, 08:33 AM#1
Evaporaterr
lol i prolly answered my own question - if.
but i don't know how to go about checking if a player has left, player leaves event sucks (can only specify 1 specific player - player 1, player 2, etc.) o_O

i hope i don't have to make a constant timer.. i don't like those :<
06-15-2004, 11:14 AM#2
GaDDeN
Hmm i dunno if i got what you meant but:
Code:
Event: Player 1 leaves game
          Player 2 leaves game
          etc.
Then the actions just depend on what you want. Lets just say you want to delete all units owned by that player, in that case the actions is:
Code:
Actions: Pick every unit owned by (triggering player) and do (unit - remove) picked unit

I got ya?

edit: And btw.... dont say "player leaves event sucks", cuz ive been waiting for that trigger since editor was created... before, you had to make a check every 1 sec if a player is IN the game. Thats basically what this trigger does, but you dont have to make the whole trigger urself ^^
06-15-2004, 02:08 PM#3
iNfraNe
I think you do not know the meaning of an event. If any of the events you added happens, it triggeres the trigger.
So just do this:
Code:
Events:

Player 1 Red Leaves the game
Player 2 Blue Leaves the game
Player 3 Teal Leaves the game
etc

Actions:

Game Text - Triggering Player + " has left the game."
06-15-2004, 07:37 PM#4
Evaporaterr
im complaining that i will have to make a trigger for every player (which is 12 for my map) and that the event doesn't have the specifications that i am looking for (which is to specify that the trigger will run when ANY (playing) player leaves).

Quote:
I think you do not know the meaning of an event. If any of the events you added happens, it triggeres the trigger.

If i did not know this, i would not be making maps and i would not be here would i?
06-16-2004, 03:11 AM#5
AvalanCh3
but there are triggers which when a player leaves the game his gold and wood can be draw by players.

eg like Corridor LE
when a players leaves the game, his team can go to a certain shop and click on an item and a trigger will fire of and give the person who click on the item the gold and wood how does this works?
06-16-2004, 02:12 PM#6
iNfraNe
first of all, im just trying to help, second of all, seems like you are not reading well, you do not have to make 1 trigger for each player, just one trigger and add 12 players.
06-16-2004, 02:25 PM#7
GaDDeN
Quote:
Originally Posted by Evaporaterr
If i did not know this, i would not be making maps and i would not be here would i?

1: Everybody is a noob sometime, so there are ppl who doesnt know who make maps

2: If you knew that, you wouldnt even post this question as it is extremly easy if you know what an event is. If you actually do know, i might have mis understood what you meant in the first post.

3: Dont start saying "omg fucking moron, post the answer or stfu" as most ppl say when i say stuff like this, i HAVE posted the answer of what you asked but u still seem to have problem.

As i said: Just post all 12 events for all players, and if you need to specify the player who leaves in a action just use (triggering player).
06-16-2004, 03:13 PM#8
chemo
okay i think i have it...

E: Player 1 leaves the game
Player 2 leaves the game
Player 3 leaves the game
Player 4 leaves the game
etc.

C:

A:
set tempPlayer = triggering player
pick every units owned by player(tempPlayer) and do remove picked units

//u can add all other stuff if u wants to
06-16-2004, 05:01 PM#9
Mothmann
yea man he said it plain and simple... make 1 trigger... that has 12 events inside it
not 12 triggers with 1 event
06-17-2004, 03:06 PM#10
LunaSeer
yea like they said add 1 event for each player in the same trigger. the trigger will run if ANY player leaves the game. if you are looking for 1 generic event that will trigger when any player leaves the game then theres no such event. having 12 events isnt so hard is it? it may look like alot but thats the simplest way to do it. unless you want to do what somebody else said about checking every 1 second if a player is in the game which was the best way to do it before blizzard added the new leave event. dont think you want to do that.
06-19-2004, 07:31 PM#11
iNfraNe
so its like I said... you didnt know the meaning of a trigger, dont go "blablabla I wouldnt be here" ty