please move this tread to the right place, any moderator/admin.
I get errors about the set leaver_xp and set leaver_gold lines, but i dont know why, both variables are integrer, team1_number is integrer too.
I get errors about the set leaver_xp and set leaver_gold lines, but i dont know why, both variables are integrer, team1_number is integrer too.
-
Player 1
-

Events
-


Time - Every 2.00 seconds of game time
-
-

Conditions
-


(Player 1 (Red) slot status) Equal to Has left the game
-
-

Actions
-


Trigger - Turn off (This trigger)
-


Game - Display to (All players) for 25.00 seconds the text: ((|cffff0000 + (Name of Player 1 (Red))) + left the game!|r?n His gold has ben split and his item droped. His xp has also ben shared.)
-


Player Group - Remove Player 1 (Red) from Team1
-


Set leaver_gold = ((Player 1 (Red) Current gold) / team1_number)
-


Player - Add leaver_gold to Player 2 (Blue) Current gold
-


Player - Add leaver_gold to Player 3 (Teal) Current gold
-


Player - Add leaver_gold to Player 4 (Purple) Current gold
-


Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
-



Loop - Actions
-




Set leaver_xp = ((Hero experience of (Picked unit)) / team1_number)
-
-
-


Unit Group - Pick every unit in (Units owned by Player 2 (Blue)) and do (Actions)
-



Loop - Actions
-




Hero - Add leaver_xp experience to (Picked unit), Show level-up graphics
-
-
-


Unit Group - Pick every unit in (Units owned by Player 3 (Teal)) and do (Actions)
-



Loop - Actions
-




Hero - Add leaver_xp experience to (Picked unit), Show level-up graphics
-
-
-


Unit Group - Pick every unit in (Units owned by Player 4 (Purple)) and do (Actions)
-



Loop - Actions
-




Hero - Add leaver_xp experience to (Picked unit), Show level-up graphics
-
-
-


Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
-



Loop - Actions
-




Hero - Drop (Item carried by (Picked unit) in slot 1) from (Picked unit)
-




Hero - Drop (Item carried by (Picked unit) in slot 2) from (Picked unit)
-




Hero - Drop (Item carried by (Picked unit) in slot 3) from (Picked unit)
-




Hero - Drop (Item carried by (Picked unit) in slot 4) from (Picked unit)
-




Hero - Drop (Item carried by (Picked unit) in slot 5) from (Picked unit)
-




Hero - Drop (Item carried by (Picked unit) in slot 6) from (Picked unit)
-
-
-


Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Unit - Remove (Picked unit) from the game)
-


Leaderboard - Change the label for Player 1 (Red) in (Last created leaderboard) to |cffff0000Leaver|r
-


Set team1_number = (team1_number - 1)
-


Trigger - Run Bounty chooser <gen> (ignoring conditions)
-
-
Last edited:


so hum... for now its gonna be time based till i get it working and decide to fix it 
)