Leaving Trigger

Do you need World Editor help? Ask here!
Forum rules
Before making a new topic:
First, check if your question has already been answered in the Tutorials section.
If you didn't find a solution, use the search function.
If searching didn't help either, you can make a new topic.

Topic title & content:
You must use a descriptive title. (Help plz is not good) (Need help with Dialog buttons is good)
Go into much detail when posting. You should post attachments. Like screenshots of the problem, the map you are making, replays of the error. Or you could even make a screencast (video) of your problem and upload it here.

Spelling:
Grammar seems to be a serious problem amongst teenagers, so use a spell checker or you will get no love.
Read your posts twice, before pressing the reply button.
And do not use profanity. Chatspeak (y r u nub) and Leetspeak (1 C4N S33 H4X) are not welcome here either.

Only World Editor related questions are allowed here!
(Click for Battle.net help) (Click for World Editor help)
User avatar
OrcSlayer101
Posts: 82
Joined: Thu Mar 25, 2010 6:09 pm
Realm: US East
Account: ShadowBlades
Clan: TvN

Leaving Trigger

Unread post by OrcSlayer101 »

How do i put together a trigger that gives a message when someone leaves to all players withought having to make 12 different ones for each player. I know this trigger is pretty basic :? but i'd like to know the best way to do it.
The Slayer Of Orcs...

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Leaving Trigger

Unread post by 3ICE »

Use Name of(Triggering Player) instead of Name of(Player X) and squash all 12 player leaves events into the same trigger.
ImageImageImageImageImage
Image
ImageImage

Thurst4blood
Posts: 39
Joined: Fri May 21, 2010 6:50 pm
Account: Thurst4blood

Re: Leaving Trigger

Unread post by Thurst4blood »

Leaving trigger without using loads of events.

Post a reply if this doesn't work.
Attachments
testleave.w3x
(20.74 KiB) Downloaded 348 times

User avatar
3ICE
Admin
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary
Contact:

Re: Leaving Trigger

Unread post by 3ICE »

Yeah so if one player leaves you remove everyone... Good job!
EDIT: Sometimes the simplest solution is the best one.
Looping through all players, checking their slot status, adding events on the fly, etcetera is way laggier than having 12 simple events or triggers.
ImageImageImageImageImage
Image
ImageImage

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 105 guests