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

Hero Repick System

Status
Not open for further replies.
Level 4
Joined
Feb 20, 2009
Messages
51
Hey There! I Need a hero Repick System For My Defence Of The Flag Map.
There Is 2 Teems.
Alliance: Red, Teal, Yellow,Green.
Horde: Blue,Orange,Pink,Purple.
I Need That, When Hero Put COmmand:
-repick.
Hes Current Hero Will Be Removed From Game, And Created 1. Hero Choser(Circle O Power) or -repick Typed Player. I Realy Need It !
 

Ham

Ham

Level 5
Joined
Jan 16, 2009
Messages
132
  • Repick
    • Events
      • Player - Player 1 (Red) types a chat message containing -repick as An exact match
      • Player - Player 2 (Blue) types a chat message containing -repick as An exact match
      • Player - Player 3 (Teal) types a chat message containing -repick as An exact match
      • Player - Player 4 (Purple) types a chat message containing -repick as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -repick as An exact match
      • Player - Player 6 (Orange) types a chat message containing -repick as An exact match
      • Player - Player 7 (Green) types a chat message containing -repick as An exact match
      • Player - Player 8 (Pink) types a chat message containing -repick as An exact match
    • Conditions
    • Actions
      • Set TempGroup = (Units owned by (Triggering player))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
          • Unit - Create 1 Hero Picker for (Triggering player) at (Random point in Hero Picking Region <gen>) facing Default building facing degrees
      • Custom script: call DestroyGroup (udg_TempGroup)
 
Last edited:
Level 16
Joined
Jul 21, 2008
Messages
1,121
Upper trigger is a bit leaky, may cause lags and some undesired effects (like creating multiple circles if repicked hero has some summoned creature)

  • Repick
    • Events
      • Player - Player 1 (Red) types a chat message containing -repick as An exact match
      • Player - Player 2 (Blue) types a chat message containing -repick as An exact match
      • Player - Player 3 (Teal) types a chat message containing -repick as An exact match
      • Player - Player 4 (Purple) types a chat message containing -repick as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -repick as An exact match
      • Player - Player 6 (Orange) types a chat message containing -repick as An exact match
      • Player - Player 7 (Green) types a chat message containing -repick as An exact match
      • Player - Player 8 (Pink) types a chat message containing -repick as An exact match
    • Conditions
    • Actions
      • Set TempGroup = (Units owned by (Triggering player))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Custom script: call DestroyGroup (udg_TempGroup)
      • Set TempPoint = (Random point in Hero Picking Region <gen>)
      • Unit - Create 1 Hero Picker for (Triggering player) at TempPoint facing Default building facing degrees
      • Custom script: call RemoveLocation (udg_TempPoint)
 
Status
Not open for further replies.
Top