Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
of course u would have some sort of event, so if it an event of the hero doing something then lvling up, then use triggering unit instead of the variable, also check if your event is even running.
((Number of units in Team1Left) Equal to 0) or ((Number of units in Team2Right) Equal to 0)
Actions
Unit Group - Pick every unit in Team1Left and do (Unit - Move (Picked unit) instantly to (Center of Shop Zone <gen>))
Unit Group - Pick every unit in Team2Right and do (Unit - Move (Picked unit) instantly to (Center of Shop Zone <gen>))
-------- Revive --------
If ((Player1Red is dead) Equal to True) then do (Hero - Instantly revive Player1Red at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player2Blue is dead) Equal to True) then do (Hero - Instantly revive Player2Blue at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player3Teal is dead) Equal to True) then do (Hero - Instantly revive Player3Teal at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player4Purple is dead) Equal to True) then do (Hero - Instantly revive Player4Purple at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player5Yellow is dead) Equal to True) then do (Hero - Instantly revive Player5Yellow at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player6Orange is dead) Equal to True) then do (Hero - Instantly revive Player6Orange at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player7Green is dead) Equal to True) then do (Hero - Instantly revive Player7Green at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player8Pink is dead) Equal to True) then do (Hero - Instantly revive Player8Pink at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player9Gray is dead) Equal to True) then do (Hero - Instantly revive Player9Gray at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player10LightBlue is dead) Equal to True) then do (Hero - Instantly revive Player10LightBlue at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player11DarkGreen is dead) Equal to True) then do (Hero - Instantly revive Player11DarkGreen at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player12Brown is dead) Equal to True) then do (Hero - Instantly revive Player12Brown at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
-------- Give Gold --------
Player - Add 300 to Player 1 (Red) Current gold
Player - Add 300 to Player 2 (Blue) Current gold
Player - Add 300 to Player 3 (Teal) Current gold
Player - Add 300 to Player 4 (Purple) Current gold
Player - Add 300 to Player 5 (Yellow) Current gold
Player - Add 300 to Player 6 (Orange) Current gold
Player - Add 300 to Player 7 (Green) Current gold
Player - Add 300 to Player 8 (Pink) Current gold
Player - Add 300 to Player 9 (Gray) Current gold
Player - Add 300 to Player 10 (Light Blue) Current gold
Player - Add 300 to Player 11 (Dark Green) Current gold
Player - Add 300 to Player 12 (Brown) Current gold
I suggested Triggering unit a post before, but since he didnt say if it worked then i thought it didnt. but i would think that triggering unit will only give the dying unit the level. not the whole team.
((Number of units in Team1Left) Equal to 0) or ((Number of units in Team2Right) Equal to 0)
Actions
Unit Group - Pick every unit in Team1Left and do (Unit - Move (Picked unit) instantly to (Center of Shop Zone <gen>))
Unit Group - Pick every unit in Team2Right and do (Unit - Move (Picked unit) instantly to (Center of Shop Zone <gen>))
-------- Revive --------
If ((Player1Red is dead) Equal to True) then do (Hero - Instantly revive Player1Red at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player2Blue is dead) Equal to True) then do (Hero - Instantly revive Player2Blue at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player3Teal is dead) Equal to True) then do (Hero - Instantly revive Player3Teal at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player4Purple is dead) Equal to True) then do (Hero - Instantly revive Player4Purple at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player5Yellow is dead) Equal to True) then do (Hero - Instantly revive Player5Yellow at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player6Orange is dead) Equal to True) then do (Hero - Instantly revive Player6Orange at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player7Green is dead) Equal to True) then do (Hero - Instantly revive Player7Green at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player8Pink is dead) Equal to True) then do (Hero - Instantly revive Player8Pink at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player9Gray is dead) Equal to True) then do (Hero - Instantly revive Player9Gray at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player10LightBlue is dead) Equal to True) then do (Hero - Instantly revive Player10LightBlue at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player11DarkGreen is dead) Equal to True) then do (Hero - Instantly revive Player11DarkGreen at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
If ((Player12Brown is dead) Equal to True) then do (Hero - Instantly revive Player12Brown at (Center of Shop Zone <gen>), Show revival graphics) else do (Do nothing)
-------- Give Gold --------
Player - Add 300 to Player 1 (Red) Current gold
Player - Add 300 to Player 2 (Blue) Current gold
Player - Add 300 to Player 3 (Teal) Current gold
Player - Add 300 to Player 4 (Purple) Current gold
Player - Add 300 to Player 5 (Yellow) Current gold
Player - Add 300 to Player 6 (Orange) Current gold
Player - Add 300 to Player 7 (Green) Current gold
Player - Add 300 to Player 8 (Pink) Current gold
Player - Add 300 to Player 9 (Gray) Current gold
Player - Add 300 to Player 10 (Light Blue) Current gold
Player - Add 300 to Player 11 (Dark Green) Current gold
Player - Add 300 to Player 12 (Brown) Current gold
-------- Give Exprience --------
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
Loop - Actions
Hero - Set (Picked unit) Hero-level to ((Hero level of (Picked unit)) + 1), Show level-up graphics
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.