- Joined
- Jun 13, 2020
- Messages
- 16
Hey guys, I am having trouble with my trigger at the below
Basically,the enemy_group only attack the player 1 units only,although I had put other player's units in the map.
NOPlayer is a integer variable.
Allies of player 1 is player 1 to 6
Basically,the enemy_group only attack the player 1 units only,although I had put other player's units in the map.
NOPlayer is a integer variable.
Allies of player 1 is player 1 to 6
Rich (BB code):
-
Demon Creep
-

Events
-

Conditions
-

Actions
-


Set Enemy_player = (Random player from (All allies of Player 1 (Red)))
-


Set Temp_Group[1] = (Units owned by Player 7 (Green) matching (((Matching unit) is alive) Equal to True))
-


Set Temp_Group[2] = (Units owned by Enemy_player matching (((Matching unit) is alive) Equal to True))
-


Set Temp_Unit = (Random unit from Temp_Group[2])
-


Set attack_group = (Random ((Random integer number between 3 and 6) x NOPlayer) units from Temp_Group[1])
-


Custom script: set bj_wantDestroyGroup =true
-


Unit Group - Pick every unit in attack_group and do (Actions)
-



Loop - Actions
-




Unit - Order (Picked unit) to Attack-Move To (Position of Temp_Unit)
-
Demon Creep
-

Events
-

Conditions
-

Actions
-


Set Enemy_player = (Random player from (All allies of Player 1 (Red)))
-


Set Temp_Group[1] = (Units owned by Player 7 (Green) matching (((Matching unit) is alive) Equal to True))
-


Set Temp_Group[2] = (Units owned by Enemy_player matching (((Matching unit) is alive) Equal to True))
-


Set Temp_Unit = (Random unit from Temp_Group[2])
-


Set attack_group = (Random ((Random integer number between 3 and 6) x NOPlayer) units from Temp_Group[1])
-


Custom script: set bj_wantDestroyGroup =true
-


Unit Group - Pick every unit in attack_group and do (Actions)
-



Loop - Actions
-




Unit - Order (Picked unit) to Attack-Move To (Position of Temp_Unit)
-
Temp Dies
-

Events
-


Unit - A unit Dies
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Dying unit) Equal to (Random unit from attack_group)
-



Then - Actions
-




Unit Group - Remove (Dying unit) from attack_group
-




Trigger - Run Demon Creep <gen> (ignoring conditions)
-



Else - Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Dying unit) Equal to Temp_Unit
-



Then - Actions
-




Unit Group - Remove (Dying unit) from Temp_Group[2]
-




Trigger - Run Demon Creep <gen> (ignoring conditions)
-



Else - Actions