Experience rate go up when ally leaves

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.
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.
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
Code:
Hero - Make (Picked player) Heroes gain (((Picked player) experience rate) + 20.00)% experience from future kills
 

Phoenixrainn

New Member
Reaction score
2
how about...

Code:
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
        Num_Players_ForceA = 4
    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 140.00% experience from future kills
        Player - Set (Triggering player) Current gold to 0

EDIT

I like polo's idea more.
 

linamus

I r bak!
Reaction score
57
I woudn't do that at all. You see, when in team, all XP gained is shared to heroes. So, when player leave, all the rest heroes will automatically get more xp.
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
I woudn't do that at all. You see, when in team, all XP gained is shared to heroes. So, when player leave, all the rest heroes will automatically get more xp.

Depends what happens to the leaver's hero.

If it gets removed (or paused?), yes
But if other players get shared control, the hero will still get experience.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top