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

Hero selection trigger

Status
Not open for further replies.
Level 10
Joined
Jul 2, 2004
Messages
690
(player) clicks a unit
(unit) equals (type)
give (player) (clicked unit type)
remove (other unit) from (player)
 
Level 9
Joined
Sep 8, 2004
Messages
633
What qwerty said was basically what has to be done.

For the first event, use: Player - selection event

For the condition: Unit comparison - (triggering unit) is equal to (hero1)

Actions:
Unit - Change ownership of (hero1) to (triggering player)
Unit - Move (hero1) instantly to (location)

OR if you want the units to be able to be picked multiple times:

Unit - Create 1 (hero1) at center of (location)
 
Level 2
Joined
Jun 25, 2005
Messages
16
thanks, darn so many ways of doing it, and thanks.

A person gave a working trigger to me on battlenet forms last night. The trigger worked, you can click any unit in the game and it give you them. LOL
that would be funny if someone actually wanted a trigger that on the map, a person could move to the most powerful boss and get him.
 
Level 6
Joined
Mar 25, 2005
Messages
304
well first of all, most people dont like it when the hero is given to them at the first click... they want to see their hero stats... I don't want to play a map the first time and select a hero without knowing the stats or attributes, etc. all you have to do is do the same thing as what qwerty or angelusz said, but at the end of the trigger, create the action, "trigger - turn off this trigger". This also means you have to create a hero selection trigger for each player. Also, to prevent other players from selecting a hero that someone else already selected, put this under condition, "selected unit is owned by neutral (or which ever player owns the heros in the first place) equals true". This prevents player red from selecting a hero, and then player blue to reselect red's hero, then red has no hero because his trigger is tunred off to prevent reselection. hope that helps.
-Blue
 
Status
Not open for further replies.
Top