- Joined
- Jul 13, 2006
- Messages
- 140
So, this is a part of a trigger that refuses to work, and I can't figure out why.
Oh and I have like 7 different copies of this same trigger (and another one that is about this large (EDIT: MUCH larger)) and it's causing loads of lag, is there anyway to optimise it?
BTW, I've tried doing the conditions as not equal to and the Then action as the set charges, but it didn't work either.
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Charges remaining in (Item carried by (Picked unit) of type ITEM)) Less than 10
-
(Owner of (Picked unit)) Not equal to Neutral Passive
-
(Owner of (Picked unit)) Not equal to Neutral Hostile
-
-
-
-
Then - Actions
-
Set OtherPoint = (Position of (Picked unit))
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 200.00 of OtherPoint) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Picked unit)) Equal to Something Centre
-
(Unit-type of (Picked unit)) Equal to Something
-
(Unit-type of (Picked unit)) Equal to Something
-
(Unit-type of (Picked unit)) Equal to Something
-
(Unit-type of (Picked unit)) Equal to Something
-
(Unit-type of (Picked unit)) Equal to Something Battleship
-
(Unit-type of (Picked unit)) Equal to Something
-
(Unit-type of (Picked unit)) Equal to Something
-
-
-
-
Then - Actions
-
Else - Actions
-
Item - Set charges remaining in (Item carried by (Picked unit) of type ITEM) to ((Charges remaining in (Item carried by (Picked unit) of type ITEM)) + 1)
-
-
-
-
-
Custom script: call RemoveLocation(udg_OtherPoint)
-
-
Else - Actions
-
Oh and I have like 7 different copies of this same trigger (and another one that is about this large (EDIT: MUCH larger)) and it's causing loads of lag, is there anyway to optimise it?
BTW, I've tried doing the conditions as not equal to and the Then action as the set charges, but it didn't work either.
Last edited: