• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Increasing level of the Hero by one

Status
Not open for further replies.
Level 20
Joined
Oct 21, 2006
Messages
3,230
  • Events
    • Unit - A unit Dies
  • Conditions
    • ((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 --------
    • No idea
    • Trigger - Turn on Start Battle Timer ON <gen>
This is The Trigger
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Whereas Reviving Hero would give no one the level.

He should do

  • 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 Hero Level of (Picked Unit) to ((Hero Level of (Picked Unit) + 1))
 
Level 20
Joined
Oct 21, 2006
Messages
3,230
  • Battle END
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((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
      • Trigger - Turn on Start Battle Timer ON <gen>
Nothing happens!? ; (
 
Status
Not open for further replies.
Top