HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Best way for player leaves game = shared control for allies?

08-01-2003, 10:38 PM#1
Katarina
What would be the best way to do this?

So far I have an:

Event: Every 10 seconds
Pick every player in group 1
if picked player equal to left game
then give shared control to player 1-6

pick everyplayer in group 2
if picked player equal to left game
then give shared control to player 7-12

There MUST be a better way than this... right?
08-02-2003, 12:50 AM#2
xXL33t-DragonXx
Event: Player leaves game
Condition: Player is on Team 1 or Team 2
Action: If player is on team 1 then give control to players (team1)
else give player to team 2

Don't know if that would work, but that's what I'd try to.
08-02-2003, 01:54 AM#3
Katarina
You can only do a player has left game as a conditional, not an event. :(

The way I have it set, it seems like every 10 seconds the game will try to give control and execute anyother triggers attached with it, bah :(
08-02-2003, 02:00 AM#4
xXL33t-DragonXx
If someone leaves, they, by default, lose right? Maybe that will help. :D
08-02-2003, 07:02 AM#5
piRo-piOn
they only lose in melee maps, if our good in jass you can RegisterPlayerEvent for EVENT_PLAYER_LEAVES... if not look through the blizzard.j file (melee initialization script) find the part that has to do with players leaving and conpy/paste that into the beggining of your map's .j file (click on the map icon in Trigger Editor(