HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Selection System Problem

05-03-2007, 01:50 AM#1
DanL.
Im having some problem with this trigger. The selection wont clear and the unit will not be created for the person selecting on the unit.
Anyone happen to know the problem with this?

Trigger:
HeroSelection
Collapse 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
Collapse Conditions
(Picked unit) Equal to Selection Button Choose 0005 <gen>
Collapse Actions
Selection - Clear selection for (Triggering player)
Unit - Create 1 Movement Test for (Triggering player) at (Center of TestSelect <gen>) facing Default building facing degrees
Set SelectionUnit = (Last created unit)
Trigger - Turn on Selected Unit <gen>
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Visibility - Disable (Last created visibility modifier)
05-03-2007, 02:05 AM#2
TheSecretArts
one, try using Unit Type of (triggering unit) is equal to Chooser, try addind stuff that displays when a certain point in trig to see if actions are even firing.
05-03-2007, 03:31 AM#3
Pyrogasm
Quote:
Originally Posted by TheSecretarts
one, try using Unit Type of (triggering unit) is equal to Chooser
TheSecretArts, however obtusely, is correct. The erroris in the condition: (Picked unit) Equal to Selection Button Choose 0005 <gen>

"Picked Unit" refers to a unit picked in a "Pick every unit in GROUP and do ACTION" action. You should do something like this:
Trigger:
Conditions
(Triggering Unit) equal to Selection Button Choose 0005 <gen>
05-03-2007, 10:27 AM#4
DanL.
Thank you a bunch for helping both of you :)