HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Other triggers firing during map load

10-19-2003, 09:22 PM#1
Panto
Greetings.

If a player leaves while the map is loading, will a trigger that has the "Player Leaves" event fire? Or does the game have to be actually started?
10-19-2003, 09:24 PM#2
jan87
Don't really know, but I think that have happend some time in the maps I've been making.

Not sure if the leaved exactly when the game had started or under the loading thingy.
10-19-2003, 09:27 PM#3
Eriond
If you want to make it happen early, you should make it initially disabled and make a trigger which enables it after .10 seconds have past.
10-19-2003, 09:27 PM#4
Cronanius
it wont fire. im 99.9% sure about that. If you want it to fire, have something like: if player isnt there, do...blah blah blah.

Thats if u mean during the time when the host hits the start game button, in the 2 seconds that u can leave.

**Edit-- i should read more carefully, but im still damn sure it wont fire.
10-19-2003, 09:30 PM#5
Panto
No, I'm talking about the loading of the map, while the load screen is showing and the blue bar shows the loading progress.

Eriond, I'm sure I don't understand what you're trying to say. I want the trigger to successfully fire whenever a player leaves, which can be during map load (by closing Warcraft III or losing the connection).
10-19-2003, 09:32 PM#6
Cronanius
Like i said, it shouldnt fire, because the player is NOT there at map initialization.
10-19-2003, 09:34 PM#7
Panto
Well, here's the issue. Map Initialization supposedly starts when the map loading screen comes up.

Even if it didn't, the important thing is to figure out when the first moment is that any trigger can fire. So, perhaps what I'm asking is this: Can a trigger fire during map loading, besides the Map Initialization trigger?

All in all, I guess my best option is to make a test.
10-19-2003, 09:34 PM#8
Eriond
Ok, that's easy, I think, Just set the event on your leaving trigger to a periodic, that should take a care of it, one way or another, when a player leaves during map loading or in game, it's registered as Not Used or Has left the game, so just use the condition:

Player Slot Status not equal to Is playing

.... Sorry If I wasn't clear, I hope I am now, though I'm probably not...

EDIT: Two posts just popped up while I was typing this lol....... Just don't pay attention to my posts, I'm just complicating things...
10-19-2003, 09:38 PM#9
Panto
I could certainly add a trigger that checks players' status at Time Elapsed 0.00, but it's a much cleaner system if the one trigger that fires when a player leaves works on its own.
That trigger will set a variable for each player that is checked at Time Elapsed 0.00, and at other points in the game.