- Joined
- Nov 12, 2006
- Messages
- 765
this trigger here is for an ability called Capture planet. a unit targets the planet, uses the ability and this trigger then runs to change control of the planet. however it doesnt seem to work all the time. peticulary when multiple planets are being captured at the same time, however there shouldnt be any problems because the ability takes 12 seconds to cast, and then like .5 seconds to execute. any help?
in addition, can anyone tell me what the code is so i can make trigger text look like world editor trigger text, because i have not found a BB code for that
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Capture Planet
-
Actions
-
Unit Group - Pick every unit in (Units within 512.00 of (Position of (Casting unit))) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Picked unit)) Equal to Planet
-
Then - Actions
- Unit - Change ownership of (Picked unit) to (Triggering player) and Change color
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 512.00 of (Position of (Casting unit))) and do (Actions)
Last edited: