Deleted member 177737
D
Deleted member 177737
Hey,
I'm attempting to make a customized auto-collection system for my map. I cannot use the default ones because I'm using custom resources and blah blah blah...
Anyways I'm trying to get the game to run the below triggers but when I go in and test them out nothing happens. It should add the selected unit into the AutoCollect_LJ group and then set a few variables send some messages etc...
Can anyone see my (probably simple) mistake?
I'm attempting to make a customized auto-collection system for my map. I cannot use the default ones because I'm using custom resources and blah blah blah...
Anyways I'm trying to get the game to run the below triggers but when I go in and test them out nothing happens. It should add the selected unit into the AutoCollect_LJ group and then set a few variables send some messages etc...
Can anyone see my (probably simple) mistake?
-
test
-
Events
- Player - Player 1 (Red) types a chat message containing go as An exact match
-
Conditions
- (Owner of (Targeted unit)) Equal to Player 1 (Red)
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Targeted unit)) Equal to Tree Cutter
-
Then - Actions
- Set AutoCollection_Interger = (AutoCollection_Interger + 1)
- Game - Display to Player Group - Player 1 (Red) the text: (Auto-Collection Enabled on + ((Name of AutoCollection_Unit[AutoCollection_Interger]) + .))
- Unit Group - Add (Targeted unit) to AutoCollection_LJ_Group
- Trigger - Turn on Untitled Trigger 001 <gen>
-
Else - Actions
- Game - Display to (All players) the text: Targeted unit must ...
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Untitled Trigger 001
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Killing unit)) Equal to Tree Cutter
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Killing unit) is in AutoCollection_LJ_Group) Equal to True
-
Then - Actions
- Unit - Order (Killing unit) to Attack (Random unit from (Units within 2000.00 of (Position of (Killing unit)) matching ((Unit-type of (Matching unit)) Equal to Fallen Log (5))))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Untitled Trigger 002
-
Events
- Player - Player 1 (Red) Selects a unit
-
Conditions
- ((Targeted unit) is in AutoCollection_LJ_Group) Equal to True
-
Actions
- Game - Display to Player Group - Player 1 (Red) the text: ((Name of (Targeted unit)) + unit currently has Auto-Collection Enabled.)
-
Events