FrozenShadow
I am a WolfieeifloW fan.
- Reaction score
- 75
You can detect and pick all units equal to footman, then select all picked units.
You can detect and pick all units equal to footman, then select all picked units.
Unit Groups
Events
Map initialization
Conditions
Actions
Unit Group - Add Commander 0000 <gen> to Unit_Group
Set UnitsInGroup = (Number of units in Unit_Group)
Attatch to Squad
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Attatch to Squad
Actions
Set Cast_Point = (Position of (Triggering unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Target unit of ability being cast) Equal to (Random unit from Unit_Group)
UnitsInGroup Less than 3
Then - Actions
Unit Group - Add (Triggering unit) to Unit_Group
Set UnitsInGroup = (Number of units in Unit_Group)
Else - Actions
Floating Text - Create floating text that reads Unit Squad is full at Cast_Point with Z offset 10.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Custom script: call RemoveLocation(udg_Cast_Point)
Move
Events
Unit - A unit Is issued an order targeting a point
Conditions
((Ordered unit) is in Unit_Group) Equal to True
Or - Any (Conditions) are true
Conditions
(Issued order) Equal to (Order(move))
(Issued order) Equal to (Order(smart))
Actions
Unit Group - Pick every unit in Unit_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Not equal to (Ordered unit)
Then - Actions
Set Moving_Unit = (Picked unit)
Trigger - Turn off (This trigger)
Unit - Order Moving_Unit to Move To (Target point of issued order)
Trigger - Turn on (This trigger)
Else - Actions
Set Point[1] = (Position of (Casting unit))
Set Point[2] = (Point[1] offset by (200.00, 0.00))
Set Point[3] = (Point[1] offset by (-200.00, 0.00))
Set Point[4] = (Point[1] offset by (0.00, 200.00))
Set Point[5] = (Point[1] offset by (0.00, -200.00))
Set Point[6] = (Point[1] offset by (200.00, -200.00))
Set Point[7] = (Point[1] offset by (-200.00, -200.00))
Set Point[8] = (Point[1] offset by (200.00, 200.00))
Set Point[9] = (Point[1] offset by (-200.00, 200.00))
Set Place = (Place + 1)
Thanks for the suggestion.
I think I should point out with that my current system I am trying to make it so you can select ANY unit in the squad and give it commands that effect the rest of the squad, this is because each attachable unit has its own special abilities and what not.
Move
Events
Unit - A unit Is issued an order targeting a point
Conditions
Or - Any (Conditions) are true
Conditions
(Issued order) Equal to (Order(move))
(Issued order) Equal to (Order(smart))
Actions
Unit Group - Pick every unit in Unit_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Ordered unit) is in Unit_Group) Equal to True
Or - Any (Conditions) are true
Conditions
(Issued order) Equal to (Order(move))
(Issued order) Equal to (Order(smart))
(Picked unit) Not equal to (Ordered unit)
Then - Actions
Set Moving_Unit = (Picked unit)
Trigger - Turn off (This trigger)
Unit - Order Moving_Unit to Move To (Target point of issued order)
Trigger - Turn on (This trigger)
Else - Actions