• 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.

about hero selection screen

Status
Not open for further replies.
Level 14
Joined
Oct 27, 2007
Messages
1,395
shouldn't be all that hard.. just put the heros you want down on the map.. put them with a non-human player.

and that have the event Player selects a unit.

Condition triggering unit owned by player whatever

and then action create picked (or selected.. can't remember) unit at Location whatever.

I'd write it out in trigger but i don't have access to my we right now.. sorry lol
 
Level 14
Joined
Apr 21, 2007
Messages
1,465
Code:
Event - Player - Player 1 (Red) Selects a unit
Condition - Doonce equal to false
             - (Owner of (Triggering unit)) Equal to Player 12 (Brown)
Action - Unit - Create 1 (Unit-type of (Triggering unit)) for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
         - Set DoOnce == true

Note that I added a DoOnce boolean variable that will make the player select a hero only once. I assumed that the owner of the heros to be slected is player 12(brown) so he shouldn'd be playable. Also note that you will have to create this trigger for every user player just changing the event for each player. Also note that you could change the condition where it says the owner is player 12(brown), you can set a condition such as (Triggering unit) Equal to OrcHero or something similar.

I tested it and it works :)
 
Status
Not open for further replies.
Top