I'm unable to test this alone, and I cannot afford to test this and fail in my epic map. I never use allegiance triggers before...
The trigger is simple It's purpose is when player joins the pirates, it allies with the pirate league and declare war on the other empires. I'm not certain this trigger works, this is first time I use ally triggers.
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- PlayerBoat[(Integer A)] Not equal to No unit
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of PlayerBoat[(Integer A)]) is in Pirate_Players) Equal to False
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of PlayerBoat[(Integer A)]) Equal to Pirate Ship
-
Conditions
-
Then - Actions
- Player Group - Add (Owner of PlayerBoat[(Integer A)]) to Pirate_Players
-
Player Group - Pick every player in (All players matching ((Matching player) Not equal to (Owner of PlayerBoat[(Integer A)]))) and do (Actions)
-
Loop - Actions
- Player - Make (Owner of PlayerBoat[(Integer A)]) treat (Picked player) as an Enemy
-
Loop - Actions
-
Player Group - Pick every player in Pirate_Players and do (Actions)
-
Loop - Actions
- Player - Make (Owner of PlayerBoat[(Integer A)]) treat (Picked player) as an Ally with shared vision
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of players in Pirate_Players) Greater than 1
-
Then - Actions
- Player - Make (Picked player) treat (Owner of PlayerBoat[(Integer A)]) as an Ally with shared vision
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
The trigger is simple It's purpose is when player joins the pirates, it allies with the pirate league and declare war on the other empires. I'm not certain this trigger works, this is first time I use ally triggers.