• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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