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

Another Trigger Problem

Status
Not open for further replies.
Level 2
Joined
Jul 18, 2004
Messages
12
I have three problems with this one. With this trigger it is supposed to limit you to one hero. You chose your hero by clicking it with mouse. My problems are that one you can just keep clicking and getting more heroes. Second the trigger doesn't start working until you select one of the given hero choices first. After you have done that it works the way it should but with problem listed above. Also if the very first thing you chose is not even a hero it still copies it the first time.

Here is the Trigger its shorter than my last post's trigger =).

Hero Selection
Events
Player - Player 1 (Red) Selects a unit
Player - Player 2 (Blue) Selects a unit
Player - Player 3 (Teal) Selects a unit
Player - Player 4 (Purple) Selects a unit
Player - Player 5 (Yellow) Selects a unit
Player - Player 6 (Orange) Selects a unit
Player - Player 7 (Green) Selects a unit
Player - Player 8 (Pink) Selects a unit
Conditions
Or - Any (Conditions) are true
Conditions
(Agnate 0048 <gen> is selected by (Triggering player)) Equal to True
(Anub'arak 0056 <gen> is selected by (Triggering player)) Equal to True
(Bor Stonebreaker 0052 <gen> is selected by (Triggering player)) Equal to True
(Chainer 0002 <gen> is selected by (Triggering player)) Equal to True
(Goreath'ier 0057 <gen> is selected by (Triggering player)) Equal to True
(Greven 0058 <gen> is selected by (Triggering player)) Equal to True
(Laquatus 0050 <gen> is selected by (Triggering player)) Equal to True
(Mageta 0053 <gen> is selected by (Triggering player)) Equal to True
(Onean 0051 <gen> is selected by (Triggering player)) Equal to True
(Serra 0054 <gen> is selected by (Triggering player)) Equal to True
(Treva 0055 <gen> is selected by (Triggering player)) Equal to True
(Yawgmoth 0059 <gen> is selected by (Triggering player)) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayerChosenHero[(Player number of (Triggering player))] Equal to False
Then - Actions
Unit - Create 1 (Unit-type of (Triggering unit)) for (Triggering player) at (Center of StartRegions[(Player number of (Triggering player))]) facing (Center of (Playable map area))
Set PlayerChosenHero[(Player number of (Triggering player))] = True
Else - Actions
Do nothing
Camera - Pan camera for (Triggering player) to ((Triggering player) start location) over 0.00 seconds
 
Level 16
Joined
Sep 3, 2004
Messages
2,086
Confine your trigger problems to one thread because it's a stupid way to get attention by putting it in 2+ threads.

It says create a unit type of triggering unit.... also, I would use a custom value to check if they have been selected, and give them control of that hero exclusively
 
Level 2
Joined
Jul 18, 2004
Messages
12
I didn't do it for attention... They are two completely different triggers and I made two topics because of the size of each. But I will remember this and not make that mistake again.
 
Status
Not open for further replies.
Top