Hero Picking, Problem finding a good solution...

KvickaN

TH.net Regular
Reaction score
24
Hey all :)

So... My problem is finding a good solution to my hero picking trigger.
The idea for now looks like this:

Code:
Red Pick 1
    Events
        Unit - A unit enters Pick Hero 1 <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 1 (Red)
    Actions
        Unit - Create 1 Elemental Mage for Player 1 (Red) at (Random point in Team One <gen>) facing Default building facing degrees
        Wait 0.02 seconds
        Unit - Remove (Entering unit) from the game

Code:
Blue Pick 1
    Events
        Unit - A unit enters Pick Hero 1 <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 2 (Blue)
    Actions
        Unit - Create 1 Elemental Mage for Player 2 (Blue) at (Random point in Team One <gen>) facing Default building facing degrees
        Wait 0.02 seconds
        Unit - Remove (Entering unit) from the game

Code:
Teal Pick 1
    Events
        Unit - A unit enters Pick Hero 1 <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 3 (Teal)
    Actions
        Unit - Create 1 Elemental Mage for Player 3 (Teal) at (Random point in Team Two <gen>) facing Default building facing degrees
        Wait 0.02 seconds
        Unit - Remove (Entering unit) from the game

Code:
Purple Pick 1
    Events
        Unit - A unit enters Pick Hero 1 <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 4 (Purple)
    Actions
        Unit - Create 1 Elemental Mage for Player 4 (Purple) at (Random point in Team Two <gen>) facing Default building facing degrees
        Wait 0.02 seconds
        Unit - Remove (Entering unit) from the game

Code:
Yellow Pick 1
    Events
        Unit - A unit enters Pick Hero 1 <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 5 (Yellow)
    Actions
        Unit - Create 1 Elemental Mage for Player 5 (Yellow) at (Random point in Team Three <gen>) facing Default building facing degrees
        Wait 0.02 seconds
        Unit - Remove (Entering unit) from the game

Code:
Orange Pick 1
    Events
        Unit - A unit enters Pick Hero 1 <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 6 (Orange)
    Actions
        Unit - Create 1 Elemental Mage for Player 6 (Orange) at (Random point in Team Three <gen>) facing Default building facing degrees
        Wait 0.02 seconds
        Unit - Remove (Entering unit) from the game

Code:
Green Pick 1
    Events
        Unit - A unit enters Pick Hero 1 <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 7 (Green)
    Actions
        Unit - Create 1 Elemental Mage for Player 7 (Green) at (Random point in Team Four <gen>) facing Default building facing degrees
        Wait 0.02 seconds
        Unit - Remove (Entering unit) from the game

Code:
Pink Pick 1
    Events
        Unit - A unit enters Pick Hero 1 <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 8 (Pink)
    Actions
        Unit - Create 1 Elemental Mage for Player 8 (Pink) at (Random point in Team Four <gen>) facing Default building facing degrees
        Wait 0.02 seconds
        Unit - Remove (Entering unit) from the game

Heres a screenshot to bring you the picture :)

heropickingdl3.jpg


Regards, KvickaN.
 

Psiblade94122

In need of sleep
Reaction score
138
Code:
Red Pick 1
    Events
        Unit - A unit enters Pick Hero 1 <gen>
    Conditions
    Actions
        If
            Conditions
                 (Owner of (Entering unit)) is in team one
            Then
                   Unit - Create 1 Elemental Mage for (Owner of (Entering unit)) at (Random point in Team One <gen>) facing Default building facing degrees
        Unit - Remove (Entering unit) from the game
             Else
                  If
            Conditions
                 (Owner of (Entering unit)) is in team two
            Then
                   Unit - Create 1 Elemental Mage for (Owner of (Entering unit)) at (Random point in Team two <gen>) facing Default building facing degrees
        Unit - Remove (Entering unit) from the game
            Else
If
            Conditions
                 (Owner of (Entering unit)) is in team three
            Then
                   Unit - Create 1 Elemental Mage for (Owner of (Entering unit)) at (Random point in Team three <gen>) facing Default building facing degrees
        Unit - Remove (Entering unit) from the game
            Else
If
            Conditions
                 (Owner of (Entering unit)) is in team four
            Then
                   Unit - Create 1 Elemental Mage for (Owner of (Entering unit)) at (Random point in Team tFour <gen>) facing Default building facing degrees
        Unit - Remove (Entering unit) from the game
            Else


also, there are location leaks, ill leave it to you to fix those yourself, im just useing the triggers you provided

edit: crap my memorys gone bad again, was it originaly in code tags?
 
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