- Joined
- Sep 19, 2012
- Messages
- 204
Hey Guys,
Me again with a trigger problem...
I try to create a trigger that marks Slots (units) around the selected one, to show the player wich buildings would be affected by the currently selected one.
My version works fine when you select a single slot, but it bugs out and leaves behind markers that dont get removed, when you double click.
Any ideas how i could upgrade this thing so it works with double click as well?
Me again with a trigger problem...
I try to create a trigger that marks Slots (units) around the selected one, to show the player wich buildings would be affected by the currently selected one.
My version works fine when you select a single slot, but it bugs out and leaves behind markers that dont get removed, when you double click.
Any ideas how i could upgrade this thing so it works with double click as well?
-
Slot 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
-
-
Conditions
-
((Triggering unit) is A structure) Equal to True
-
(Build Area <gen> contains (Triggering unit)) Equal to True
-
-
Actions
-
Set temp_integer2 = 1
-
Set temp_group = (Units within 500.00 of (Position of (Triggering unit)))
-
Unit Group - Pick every unit in temp_group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering unit) Not equal to (Picked unit)
-
-
Then - Actions
-
Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
-
Set temp_selection[temp_integer2] = (Last created special effect)
-
Set temp_integer2 = (temp_integer2 + 1)
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyGroup (udg_temp_group)
-
-
-
Slot Deselection
-
Events
-
Player - Player 1 (Red) Deselects a unit
-
Player - Player 2 (Blue) Deselects a unit
-
Player - Player 3 (Teal) Deselects a unit
-
Player - Player 4 (Purple) Deselects a unit
-
Player - Player 5 (Yellow) Deselects a unit
-
Player - Player 6 (Orange) Deselects a unit
-
-
Conditions
-
((Triggering unit) is A structure) Equal to True
-
(Build Area <gen> contains (Triggering unit)) Equal to True
-
-
Actions
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
Special Effect - Destroy temp_selection[(Integer A)]
-
-
-
-