- Joined
- Aug 1, 2013
- Messages
- 54
Hello i got a problem with a trigger
So here is how the trigger is:
Any help would be appreciated.
So here is how the trigger is:
-
Events
- Unit - A unit Finishes training a unit
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Owner of (Trained unit)) Equal to Player
- ((Owner of (Trained unit)) is an ally of Player) Equal to True
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Trained unit)) Equal to unit1
- integer1 Equal to 5
-
Then - Actions
- Unit - Create 1 unit1 for (Owner of (Triggering unit)) at (Position of (Trained unit)) facing Default building facing degrees
- Set integer1 = 0
-
Else - Actions
- Set integer1 = (integer1 + 1)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Trained unit)) Equal to unit2
- integer2 Equal to 5
-
Then - Actions
- Unit - Create 1 unit2 for (Owner of (Triggering unit)) at (Position of (Trained unit)) facing Default building facing degrees
- Set integer2 = 0
-
Else - Actions
- Set integer2 = (integer2 + 1)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Any help would be appreciated.