Trigger problem

KnightRanger

New Member
Reaction score
1
I have an ar or ap hero picking trigger, ar is everyone gets a random hero, ap people can pick. The ar trigger isnt working. It takes the gold but no hero:

Heres the triggers.

Pick
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Dialog - Clear MyDialog
Dialog - Change the title of MyDialog to AR or AP?
Dialog - Create a dialog button for MyDialog labelled AR
Set DialogButton[1] = (Last created dialog Button)
Dialog - Create a dialog button for MyDialog labelled AP
Set DialogButton[2] = (Last created dialog Button)
Dialog - Show MyDialog for Player 10 (Light Blue)

AR Button
Events
Dialog - A dialog button is clicked for MyDialog
Conditions
(Clicked dialog button) Equal to DialogButton[1]
Actions
Unit - Create 1 Random Hero for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Random Hero for Player 2 (Blue) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Random Hero for Player 3 (Teal) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Random Hero for Player 4 (Purple) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Random Hero for Player 5 (Yellow) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Random Hero for Player 6 (Orange) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Random Hero for Player 7 (Green) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Random Hero for Player 8 (Pink) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Random Hero for Player 9 (Gray) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Random Hero for Player 10 (Light Blue) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Random Hero for Player 11 (Dark Green) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Random Hero for Player 12 (Brown) at (Center of (Playable map area)) facing Default building facing degrees
Player - Add -1750 to Player 1 (Red) Current gold
Player - Add -1750 to Player 2 (Blue) Current gold
Player - Add -1750 to Player 3 (Teal) Current gold
Player - Add -1750 to Player 4 (Purple) Current gold
Player - Add -1750 to Player 5 (Yellow) Current gold
Player - Add -1750 to Player 6 (Orange) Current gold
Player - Add -1750 to Player 7 (Green) Current gold
Player - Add -1750 to Player 8 (Pink) Current gold
Player - Add -1750 to Player 9 (Gray) Current gold
Player - Add -1750 to Player 10 (Light Blue) Current gold
Player - Add -1750 to Player 11 (Dark Green) Current gold
Player - Add -1750 to Player 12 (Brown) Current gold

Help
ps: i cant get them to look like trigger in world edit. I typed [ wc3 ] after trigger but didnt work anyway i tried it
 

Yoshii

New Member
Reaction score
74
dialog only show for light blue and you should really learn how to use loop; instead of writting add x gold to player x x 12 you can write a single line using pick all player. same thing with creating a random for X12 player you can write this in a single line
 

KnightRanger

New Member
Reaction score
1
I did it so only light blue can pick game mode. The vote system i wanted to implement was kinda complicated and i was having trouble with it. Still can anyone here answer my question. The whole spell loop thing wasnt my question.
 

Fallen-Kid

New Member
Reaction score
12
Well random hero triggers are more complicated then they seem usually you have to have all the heroes set into an array blah blah thats why i suggested looking at the dota template which has an ar example in it
 

KnightRanger

New Member
Reaction score
1
ya ima look at the dota template and look. I just dled it. i can get it to create a unit but it doesnt give a hero. it gives the random hero dummy, a peasent. so ya grr
 
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