• 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] 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 !
 
Level 5
Joined
Jan 25, 2006
Messages
103
event: player - player red enters a chat message -repick as an exact match
action: unit - remove triggering unit from game
-create 1 circle of power for player 1 red at position of (where you want)

I'm assuming player uses a unit to select a hero, if the heroes are in taverns its a bit different triggers.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
First of all after you pick a hero you need to store it in a variable like Hero[Player number of Picker] so we can locate it easly when removing


  • 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
      • Player - Player 9 (Gray) types a chat message containing -repick as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -repick as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -repick as An exact match
      • Player - Player 12 (Brown) types a chat message containing -repick as An exact match
    • Conditions
    • Actions
      • Unit - Create 1 Wisp for (Triggering player) at (Center of (Playable map area)) facing Default building facing (270.0) degrees
      • Unit - Remove Hero[(Player number of (Triggering player))] from the game
 
Status
Not open for further replies.
Top