Help plz Hero repick command

squorpion

New Member
Reaction score
12
i am trying to make a hero repick command but im stuck now... here is what i have so far


Code:
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
    Conditions
    Actions
        Unit Group - Pick every unit in (Random 1 units from (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True))) and do (Actions)
            Loop - Actions
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
Code:
repick
    Events
        Player - Player 1 (Red) types a chat message containing -repick as An exact match
    Conditions
    Actions
        Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
            Loop - Actions
                Unit - Remove (Picked unit) from the game
                <add rest of your commands here, like create a hero selecter on...>
 

squorpion

New Member
Reaction score
12
thx for the trigger but is there a way to make that trigger into selected=to hero=true unit instead of every unit becuase i am going to have a sommoner hero and wont that trigger make it for that each sommoned unit and the hero ownd spawn a hero picker and in a lot of triggers that other ppl have helped me with i see that [Custom script: set bj_wantDestroyGroup = true] what does that do???
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
well you could do that you createing your ''hero selecter'' after the loop
 

chango

New Member
Reaction score
1
Maybe this if could help

Here is the code:

Code:
If (((Picked unit) is A Hero) Equal to True) then do (Unit - Remove (Picked unit) from the game) else do (Do nothing)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top