Warcraft III resources & community, 2003–2006 · archived

Hero selection trigger

8 posts
#1

Hero selection trigger

How do I have to set up a trigger in order where I can click a hero and it gives you the hero and kills the one you clicked?
#2
bump, I still need help.
#3
(player) clicks a unit
(unit) equals (type)
give (player) (clicked unit type)
remove (other unit) from (player)
#4
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)
#5
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.
#6
Bump this because people are able to pick multiply units. how do I fix this?
#7
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
#8
A person showed me how and it works great.

When I get into the beta process I'll add question marks that tell the stats.