Hero Selection by Clicking

SpaceBar

New Member
Reaction score
16
Next time, please make it more clear in the title, because if the titles says something like that, i just persume it's a simple hero selection
 

komapatient

New Member
Reaction score
10
Simple Trigger...

Trigger:
  • Hero Selection Simple
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • HasTakenAHero Equal to False
      • (Unit-type of (Triggering unit)) Equal to Paladin
      • (Owner of (Triggering unit)) Equal to Neutral Passive
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempSelectedUnit Equal to (Triggering unit)
        • Then - Actions
          • Set HasTakenAHero = True
          • Set TempSelectedUnit = No unit
          • Unit - Change ownership of (Triggering unit) to Player 1 (Red) and Change color
        • Else - Actions
          • Set TempSelectedUnit = (Triggering unit)
          • Game - Display to (All players) the text: This is a paladin. You can't touch him. Select again to choose.
 

tuantai120

Cool Member
Reaction score
1
i don't know
i want when player click hero , create 1 hero is clicked and every player have only 1 hero by click
 

SpaceBar

New Member
Reaction score
16
Please, try to improve on your english. So you want, if a player clicks on a hero all players get that hero or just the one? (The one clciking the hero). Koma's trigger is just fine

And, how don't you know if you have TFT or RoC?
 

tuantai120

Cool Member
Reaction score
1
yeah yeah i get it
i have The Frozen Throne
and back to the trigger
Trigger:
  • Goku
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
      • Player - Player 4 (Purple) Selects a unit
      • Player - Player 5 (Yellow) Selects a unit
      • Player - Player 6 (Orange) Selects a unit
      • Player - Player 7 (Green) Selects a unit
      • Player - Player 8 (Pink) Selects a unit
      • Player - Player 9 (Gray) Selects a unit
      • Player - Player 10 (Light Blue) Selects a unit
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • HeroTaken Equal to False
      • (Unit-type of (Triggering unit)) Equal to Goku SS4
      • (Owner of (Triggering unit)) Equal to Neutral Passive
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • HeroSelect Equal to (Triggering unit)
        • Then - Actions
          • Set HeroTaken = True
          • Set UnitSelect = No unit
          • Unit - Change ownership of (Triggering unit) to Player 1 (Red) and Change color
        • Else - Actions
          • Set UnitSelect = (Triggering unit)
 

SpaceBar

New Member
Reaction score
16
Unit - Change ownership of (Triggering unit) to Player 1 (Red) and Change color

Player red only? If other players try to click it, they automatically won't be able to get it because it's Player 1(red)

Does it work? As in create the hero?
 

tuantai120

Cool Member
Reaction score
1
it's wrong ???
so
Trigger:
  • Unit - Change ownership of (Triggering unit) to (Owner of HeroSelect) and Change color

change to ???
 

SpaceBar

New Member
Reaction score
16
Alright, listen mate, this i have never done before i just use basic, taven or region hero selections so i'm lost, try asking someone else, the trigger isn't hard, just i've never done it before
 

Karst

Member
Reaction score
4
it's wrong ???
so
Trigger:
  • Unit - Change ownership of (Triggering unit) to (Owner of HeroSelect) and Change color

change to ???

What purpose does the variable HeroSelect have? I'd replace "Owner of HeroSelect" to "Triggering Player".
 

tuantai120

Cool Member
Reaction score
1
still not
can't create hero select
Trigger:
  • Goku
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
      • Player - Player 4 (Purple) Selects a unit
      • Player - Player 5 (Yellow) Selects a unit
      • Player - Player 6 (Orange) Selects a unit
      • Player - Player 7 (Green) Selects a unit
      • Player - Player 8 (Pink) Selects a unit
      • Player - Player 9 (Gray) Selects a unit
      • Player - Player 10 (Light Blue) Selects a unit
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • HeroTaken Equal to False
      • (Unit-type of (Triggering unit)) Equal to Goku SS4
      • (Owner of (Triggering unit)) Equal to Neutral Passive
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • HeroSelect Equal to (Triggering unit)
        • Then - Actions
          • Set HeroTaken = True
          • Set UnitSelect = No unit
          • Unit - Create 1 Goku SS4 for (Triggering player) at (Center of Hero ra <gen>) facing Default building facing degrees
          • Camera - Pan camera for (Owner of (Last created unit)) to (Center of Hero ra <gen>) over 0.00 seconds
        • Else - Actions
          • Set UnitSelect = (Triggering unit)
 

Fire-Wolf

S.P.D Smoke Pot Daily, Legalize It!
Reaction score
54
Its the variable hero select, it isnt being declared anywhere.
Replace the conditions from the if then else statment, and use: If triggering unit is (The goku that you select.)
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top