-
takecontrol
-
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
-
(Unit-type of (Triggering unit)) Not equal to Builder Camp 1
-
(Unit-type of (Triggering unit)) Not equal to Blue Dragon Roots
-
(Unit-type of (Triggering unit)) Not equal to Farm
-
(Unit-type of (Triggering unit)) Not equal to Fruit Stand
-
(Owner of (Triggering unit)) Not equal to (Triggering player)
-
((Triggering unit) is A structure) Equal to True
-
(PlayerRegion[(Player number of (Triggering player))] contains (Triggering unit)) Equal to True
-
-
Actions
-
Set Temp_Group = (Units currently selected by (Triggering player))
-
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
-
prevselect[(Player number of (Triggering player))] Equal to (Picked unit)
-
(Unit-type of (Picked unit)) Not equal to Builder Camp 1
-
(Unit-type of (Picked unit)) Not equal to Blue Dragon Roots
-
(Unit-type of (Picked unit)) Not equal to Farm
-
(Unit-type of (Picked unit)) Not equal to Fruit Stand
-
(Owner of (Picked unit)) Not equal to (Triggering player)
-
((Picked unit) is A structure) Equal to True
-
(PlayerRegion[(Player number of (Triggering player))] contains (Picked unit)) Equal to True
-
-
Then - Actions
-
Unit - Create 1 Take Effect for (Owner of (Triggering unit)) at (Position of (Picked unit)) facing (Center of (Playable map area))
-
Unit - Add a 2.50 second Generic expiration timer to (Last created unit)
-
Unit - Change ownership of (Picked unit) to (Triggering player) and Change color
-
-
Else - Actions
-
Set prevselect[(Player number of (Triggering player))] = (Picked unit)
-
Wait 1.00 seconds
-
Set prevselect[(Player number of (Triggering player))] = |c000996FFSummoning Hall|r 0038 <gen>
-
-
-
-
-
Custom script: call DestroyGroup (udg_Temp_Group)
-
Wait 1.00 seconds
-
Set prevselect[(Player number of (Triggering player))] = |c000996FFSummoning Hall|r 0038 <gen>
-
-
perfromes with double click on target building
This trigger makes units to get locked sometimes
I want you to give a simple code or fix if there are some errors (prevselect is a dummy variable btw)
NOT neccesary but it would be good