The newbie
New Member
- Reaction score
- 0
it's a 5v5 match, and obviously when a player leaves it gets harder for the other team. So I would like a trigger that increased the experience gain for the team that lost a player.
I don't know how to increase the experience gain by another 20% when a second player leaves. Thanks in advance.
JASS:
Alliance Players Leaving
Events
Player - Player 8 (Pink) leaves the game
Player - Player 9 (Gray) leaves the game
Player - Player 10 (Light Blue) leaves the game
Player - Player 11 (Dark Green) leaves the game
Player - Player 12 (Brown) leaves the game
Conditions
GameStarted Equal to True
Actions
Set TempInt = (Player number of (Triggering player))
Game - Display to (All players) for DispT seconds the text: (Game_Time_String + (|cffCDCD00(Notice)|r + ((Name of (Triggering player)) + has left the game. Gold split between remaining players.)))
Set Num_Players_ForceA = (Num_Players_ForceA - 1)
Player Group - Pick every player in Players_ForceA and do (Actions)
Loop - Actions
Player - Add (((Triggering player) Current gold) / Num_Players_ForceA) to (Picked player) Current gold
Player - Make (Triggering player) treat (Picked player) as an Ally with shared vision and shared units
Hero - Make (Picked player) Heroes gain 120.00% experience from future kills
Player - Set (Triggering player) Current gold to 0
I don't know how to increase the experience gain by another 20% when a second player leaves. Thanks in advance.