• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Can someone confirm this allegiance trigger is working?

Status
Not open for further replies.

TKF

TKF

Level 19
Joined
Nov 29, 2006
Messages
1,267
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...

  • 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
            • 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
              • 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
            • Else - Actions
        • Else - 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.
 
Status
Not open for further replies.
Top