• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Hero choosing

Status
Not open for further replies.
Level 17
Joined
Nov 11, 2010
Messages
1,974
Put all player's starting area's around a tavern and let them pick from it.
Then create a trigger that allows the sold hero to be instantly moved to a location once sold.
 
Level 4
Joined
Mar 24, 2008
Messages
87
There are many ways to make palyers choose their hero.
- Dialog-type as said defskull
- Tavern with a spirit / peasan / any unit you want
- Altar for each player
- Viewing + selecting, like in The black road (camera is front of the hero, you can change hero pressing arrow keys or clicking on the others).
- Circles of power, with heroes next to them. And an unit to enter the circle according to the hero you want.

These are the most used ways to choose a hero.

Tell me which one you prefer and i could help you triggering :)
 
Level 4
Joined
Mar 24, 2008
Messages
87
I trust you but i wondered if Alkatrazz wants this kind of hero selection, or if he don't know which one to use :)
 
Level 5
Joined
Aug 24, 2010
Messages
133
lol

just change show dialog to something like

  • For each (Integer A) from 1 to 12, do (Actions)
    • Loop - Actions
      • Dialog - Show Dialog for (Player((Integer A)))
and change everywhere else where it says player 1 to triggering player

also get rid of the clear dialog until everyones picked or if you arnt using dialogs anymore you can just leave it out
 
Level 5
Joined
Aug 24, 2010
Messages
133
if you used the way i showed you above did you make sure the show dialog is in the loop

gotta be like this
  • For each (Integer A) from 1 to 12, do (Actions)
    • Loop - Actions
      • Dialog - Show Dialog for Player 1 (Red)
and not like this

  • For each (Integer A) from 1 to 12, do (Actions)
    • Loop - Actions
  • Dialog - Show Dialog for Player 1 (Red)
 
Level 3
Joined
Oct 5, 2010
Messages
26
BTW, i have to use the "make (picked unit) unavailable for (all players)" whenever someone picks a hero, right?
 
Level 12
Joined
Nov 20, 2007
Messages
660
Sorry, but I doesn't know what to do :eekani:. I need a "guide" or something like that.

I updated the map
  • Initialization
    • Events
      • Time - Elapsed game time is 0.50 seconds
    • Conditions
    • Actions
      • Player Group - Add Player 1 (Red) to Show_Group
      • Player Group - Add Player 2 (Blue) to Show_Group
      • Player Group - Add Player 3 (Teal) to Show_Group
There you add players who can see the dialog


  • Show Dialog
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of Dialog to Pick one hero :
      • Dialog - Create a dialog button for Dialog labelled Blademaster
      • Set Blademaster = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Kael
      • Set Kael = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled Mountain King
      • Set Mountain_King = (Last created dialog Button)
      • Player Group - Pick every player in Show_Group and do (Actions)
        • Loop - Actions
          • Dialog - Show Dialog for (Picked player)
There you add your heroes
Note : You have to make 1 variable for every hero ...


  • Picking Hero
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Blademaster
        • Then - Actions
          • Unit - Create 1 Blademaster for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Kael
        • Then - Actions
          • Unit - Create 1 Blood Mage for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Mountain_King
        • Then - Actions
          • Unit - Create 1 Mountain King for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • Dialog - Clear Dialog
      • Dialog - Hide Dialog for (Triggering player)
There the heroes are created when player hit an dialog button (Triggering player is the clicker)
 

Attachments

  • Hero Picking System v1.0.w3x
    16.7 KB · Views: 44
Level 3
Joined
Jan 4, 2009
Messages
45
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/hero-selection-systems-31799/

Here is a tutorial made by Tonks. It includes many ways to select a hero, and it explains everything. I think you should take a look.

http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/hero-selection-systems-38699/

Here is another tutorial, made by Eleandor. This one includes dialog menu as well. I think you should read the tutorial section before asking. You will find many useful things.
 
Status
Not open for further replies.
Top