• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need 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 2
Joined
Jan 30, 2009
Messages
15
you gotta make 1 trigger for each player
(player(1) types text message -repick. unit group - pick every unit in (units owned by player (1) ) then do remove picked unit) or
make unit group for each player (unit enters (playable map area) owner of triggering unit equal to player (1) add entering unit to (unit group) then player(1) types text message -repick. unit group - pick every unit in (unit group) then do remove picked unit.

think that should work and good luck making the map.
 
Level 4
Joined
Feb 20, 2009
Messages
51
Hmm

you gotta make 1 trigger for each player
(player(1) types text message -repick. unit group - pick every unit in (units owned by player (1) ) then do remove picked unit) or
make unit group for each player (unit enters (playable map area) owner of triggering unit equal to player (1) add entering unit to (unit group) then player(1) types text message -repick. unit group - pick every unit in (unit group) then do remove picked unit.

think that should work and good luck making the map.

Hmm..Ok, Ty For Help, i'm now trying to do that.. But i little bit not understood with that player groups.. can u give more detailed example please?
 
Level 2
Joined
Jan 30, 2009
Messages
15
it was a unit group but
what you want more details about?
1.how to add unit to unit group
2.how to make a unit group
3.witch action to take
4.something else
 
Level 2
Joined
Aug 23, 2008
Messages
25
How about this?
  • Repick Trigger
    • 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
      • Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))
      • 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 = (Center of YourRegion <gen>)
      • Unit - Create 1 Circle of Power for (Triggering player) at TempPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_TempPoint)
 
Level 2
Joined
Jan 30, 2009
Messages
15
i think this is what you should do
Make a unit group for each player (as i said before) but now you will add (triggering unit is a hero equal to true then create Circle of Power at (reigon) for player(1)
 
Level 3
Joined
May 30, 2008
Messages
32
When hero repick how do u make them drop the item they already have in there inventory?

(Oops I reedit and probly should made a new topic for this, but maby not it still a good idea cause I had a town of scrool of portal then repick it loose them.)
 
Level 4
Joined
Aug 8, 2008
Messages
64
How about this?
  • Repick Trigger
    • 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
      • Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))
      • 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 = (Center of YourRegion <gen>)
      • Unit - Create 1 Circle of Power for (Triggering player) at TempPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_TempPoint)

could you import that in to a map?
 
Status
Not open for further replies.
Top