That does not work. The player leave trigger is only for victory and defeat. I tried a trigger with the event player presses the quit button, with action set resources to 0. Did not work.
I have a suggestion for a workaround. Not sure this is feasible or not. We will have to track user input to make sure that player is still in game. Player is considered left if no issue ordered in 15 or 30 seconds or so. Should work with game that require about at least 10 APM
Still, I found several things but not sure if it worked or not
Conditions(Statusofplayer1)==LeftTheGame
If it work, we might have to check every seconds or so.
Also, number of player in player group: Active player might also work. Check these out
Does anyone know how to do this?
Seems to me that you would just have to have this trigger
Any player leaves the game
Pick each player in playergroup-active player Set alliance between triggering player and picked player to neutral
@Gaurus: Go
That does not work. The player leave trigger is only for victory and defeat. I tried a trigger with the event player presses the quit button, with action set resources to 0. Did not work.
I would also really like to know if anyone has a way to do this.
Im pretty sure this would work:
Variable(2)(8) = each player's mineral and vespene count
(1)=minerals (2)=Vespene (8) Number of players
Trigger= Any player leaves game with any
Pick each unit in entire map of the type all units owned by player triggering player ->Kill picked Unit
Pick each player in Ally's of triggering player.
->Modify player variable of picked player Minerals subtract "Variable(1)(triggering player)"/number of players in Ally's of triggering player
->Modify player variable of picked player Vespene subtract "Variable(2)(triggering player)"/number of players in Ally's of triggering player
@DarkFireDragoon:
The thing is, the player-leave trigger only fires upon victory or defeat. It doesn't do anything if a player simply exits.
The event is still broken? Dang.
I have a suggestion for a workaround. Not sure this is feasible or not. We will have to track user input to make sure that player is still in game. Player is considered left if no issue ordered in 15 or 30 seconds or so. Should work with game that require about at least 10 APM
Still, I found several things but not sure if it worked or not
If it work, we might have to check every seconds or so.
Also, number of player in player group: Active player might also work. Check these out
Confirmed. If anybody finds a solution to this, I would really appreciate that :-(
edit: and well counting the players ever few seconds does not count as a solution it is a bad-medium workaround.