My Trigger
Code
A2
Events
Unit - Any Unit Enters zone_A2
Local Variables
Conditions
(Unit type of (Triggering unit)) == Hideout
Or
Conditions
(Unit type of (Triggering unit)) == Fort
Or
Conditions
(Unit type of (Triggering unit)) == Shelter
Actions
------- Player 1
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 1
Then
Unit - Create 1 Marine for player 1 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 2
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 2
Then
Unit - Create 1 Marine for player 2 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 3
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 3
Then
Unit - Create 1 Marine for player 3 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 4
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 4
Then
Unit - Create 1 Marine for player 4 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 5
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 5
Then
Unit - Create 1 Marine for player 5 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 6
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 6
Then
Unit - Create 1 Marine for player 6 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 7
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 7
Then
Unit - Create 1 Marine for player 7 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 8
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 8
Then
Unit - Create 1 Marine for player 8 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
Events
Unit - Any Unit Enters zone_A2
Local Variables
Conditions
(Unit type of (Triggering unit)) == Hideout
Or
Conditions
(Unit type of (Triggering unit)) == Fort
Or
Conditions
(Unit type of (Triggering unit)) == Shelter
Actions
------- Player 1
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 1
Then
Unit - Create 1 Marine for player 1 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 2
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 2
Then
Unit - Create 1 Marine for player 2 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 3
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 3
Then
Unit - Create 1 Marine for player 3 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 4
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 4
Then
Unit - Create 1 Marine for player 4 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 5
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 5
Then
Unit - Create 1 Marine for player 5 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 6
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 6
Then
Unit - Create 1 Marine for player 6 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 7
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 7
Then
Unit - Create 1 Marine for player 7 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
------- Player 8
General - If (Conditions) then do (Actions) else do (Actions)
If
(Owner of (Triggering unit)) == 8
Then
Unit - Create 1 Marine for player 8 at (Center of mass_A2) facing 270.0 degrees (No Options)
Else
I tried to make it so it would only be 1 trigger for each zone as there are 68 zones and I would hate to have to make 8+ triggers for each zone.
Post has been edited 1 time(s), last time on May 24 2010, 6:37 am by ZeroAme.
None.