• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

-Ally/-Unally Command help!

Status
Not open for further replies.
Level 8
Joined
Sep 1, 2009
Messages
124
  • Ally Unally
    • Events
      • Player - Player 1 (Red) types a chat message containing -ally as A substring
      • Player - Player 2 (Blue) types a chat message containing -ally as A substring
      • Player - Player 3 (Teal) types a chat message containing -ally as A substring
      • Player - Player 4 (Purple) types a chat message containing -ally as A substring
      • Player - Player 5 (Yellow) types a chat message containing -ally as A substring
      • Player - Player 6 (Orange) types a chat message containing -ally as A substring
      • Player - Player 7 (Green) types a chat message containing -ally as A substring
      • Player - Player 8 (Pink) types a chat message containing -ally as A substring
      • Player - Player 9 (Gray) types a chat message containing -ally as A substring
      • Player - Player 10 (Light Blue) types a chat message containing -ally as A substring
      • Player - Player 1 (Red) types a chat message containing -unally as A substring
      • Player - Player 2 (Blue) types a chat message containing -unally as A substring
      • Player - Player 3 (Teal) types a chat message containing -unally as A substring
      • Player - Player 4 (Purple) types a chat message containing -unally as A substring
      • Player - Player 5 (Yellow) types a chat message containing -unally as A substring
      • Player - Player 6 (Orange) types a chat message containing -unally as A substring
      • Player - Player 7 (Green) types a chat message containing -unally as A substring
      • Player - Player 8 (Pink) types a chat message containing -unally as A substring
      • Player - Player 9 (Gray) types a chat message containing -unally as A substring
      • Player - Player 10 (Light Blue) types a chat message containing -unally as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Substring((Entered chat string), 1, 5)) Equal to -ally
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Not equal to Player 1 (Red)
              • (Substring((Entered chat string), 7, 17)) Equal to red
            • Then - Actions
              • Player - Make (Triggering player) treat Player 1 (Red) as an Ally with shared vision
              • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has allied + (Name of Player 1 (Red))))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Triggering player) Not equal to Player 2 (Blue)
                  • (Substring((Entered chat string), 7, 17)) Equal to blue
                • Then - Actions
                  • Player - Make (Triggering player) treat Player 2 (Blue) as an Ally with shared vision
                  • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has allied + (Name of Player 2 (Blue))))
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Triggering player) Not equal to Player 3 (Teal)
                      • (Substring((Entered chat string), 7, 17)) Equal to teal
                    • Then - Actions
                      • Player - Make (Triggering player) treat Player 3 (Teal) as an Ally with shared vision
                      • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has allied + (Name of Player 3 (Teal))))
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Triggering player) Not equal to Player 4 (Purple)
                          • (Substring((Entered chat string), 7, 17)) Equal to purple
                        • Then - Actions
                          • Player - Make (Triggering player) treat Player 4 (Purple) as an Ally with shared vision
                          • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has allied + (Name of Player 4 (Purple))))
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Triggering player) Not equal to Player 5 (Yellow)
                              • (Substring((Entered chat string), 7, 17)) Equal to yellow
                            • Then - Actions
                              • Player - Make (Triggering player) treat Player 5 (Yellow) as an Ally with shared vision
                              • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has allied + (Name of Player 5 (Yellow))))
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Triggering player) Not equal to Player 6 (Orange)
                                  • (Substring((Entered chat string), 7, 17)) Equal to orange
                                • Then - Actions
                                  • Player - Make (Triggering player) treat Player 6 (Orange) as an Ally with shared vision
                                  • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has allied + (Name of Player 6 (Orange))))
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Triggering player) Not equal to Player 7 (Green)
                                      • (Substring((Entered chat string), 7, 17)) Equal to green
                                    • Then - Actions
                                      • Player - Make (Triggering player) treat Player 7 (Green) as an Ally with shared vision
                                      • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has allied + (Name of Player 7 (Green))))
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • (Triggering player) Not equal to Player 8 (Pink)
                                          • (Substring((Entered chat string), 7, 17)) Equal to pink
                                        • Then - Actions
                                          • Player - Make (Triggering player) treat Player 8 (Pink) as an Ally with shared vision
                                          • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has allied + (Name of Player 8 (Pink))))
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • (Triggering player) Not equal to Player 9 (Gray)
                                              • (Substring((Entered chat string), 7, 17)) Equal to gray
                                            • Then - Actions
                                              • Player - Make (Triggering player) treat Player 9 (Gray) as an Ally with shared vision
                                              • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has allied + (Name of Player 9 (Gray))))
                                            • Else - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • (Triggering player) Not equal to Player 10 (Light Blue)
                                                  • (Substring((Entered chat string), 7, 17)) Equal to light blue
                                                • Then - Actions
                                                  • Player - Make (Triggering player) treat Player 10 (Light Blue) as an Ally with shared vision
                                                  • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has allied + (Name of Player 10 (Light Blue))))
                                                • Else - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Substring((Entered chat string), 1, 7)) Equal to -unally
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Triggering player) Not equal to Player 1 (Red)
                  • (Substring((Entered chat string), 9, 19)) Equal to red
                • Then - Actions
                  • Player - Make (Triggering player) treat Player 1 (Red) as an Enemy
                  • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has unallied + (Name of Player 1 (Red))))
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Triggering player) Not equal to Player 2 (Blue)
                      • (Substring((Entered chat string), 9, 19)) Equal to blue
                    • Then - Actions
                      • Player - Make (Triggering player) treat Player 2 (Blue) as an Enemy
                      • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has unallied + (Name of Player 2 (Blue))))
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Triggering player) Not equal to Player 3 (Teal)
                          • (Substring((Entered chat string), 9, 19)) Equal to teal
                        • Then - Actions
                          • Player - Make (Triggering player) treat Player 3 (Teal) as an Enemy
                          • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has unallied + (Name of Player 3 (Teal))))
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Triggering player) Not equal to Player 4 (Purple)
                              • (Substring((Entered chat string), 9, 19)) Equal to purple
                            • Then - Actions
                              • Player - Make (Triggering player) treat Player 4 (Purple) as an Enemy
                              • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has unallied + (Name of Player 4 (Purple))))
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Triggering player) Not equal to Player 5 (Yellow)
                                  • (Substring((Entered chat string), 9, 19)) Equal to yellow
                                • Then - Actions
                                  • Player - Make (Triggering player) treat Player 5 (Yellow) as an Enemy
                                  • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has unallied + (Name of Player 5 (Yellow))))
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Triggering player) Not equal to Player 6 (Orange)
                                      • (Substring((Entered chat string), 9, 19)) Equal to orange
                                    • Then - Actions
                                      • Player - Make (Triggering player) treat Player 6 (Orange) as an Enemy
                                      • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has unallied + (Name of Player 6 (Orange))))
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • (Triggering player) Not equal to Player 7 (Green)
                                          • (Substring((Entered chat string), 9, 19)) Equal to green
                                        • Then - Actions
                                          • Player - Make (Triggering player) treat Player 7 (Green) as an Enemy
                                          • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has unallied + (Name of Player 7 (Green))))
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • (Triggering player) Not equal to Player 8 (Pink)
                                              • (Substring((Entered chat string), 9, 19)) Equal to pink
                                            • Then - Actions
                                              • Player - Make (Triggering player) treat Player 8 (Pink) as an Enemy
                                              • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has unallied + (Name of Player 8 (Pink))))
                                            • Else - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • (Triggering player) Not equal to Player 9 (Gray)
                                                  • (Substring((Entered chat string), 9, 19)) Equal to gray
                                                • Then - Actions
                                                  • Player - Make (Triggering player) treat Player 9 (Gray) as an Enemy
                                                  • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has unallied + (Name of Player 9 (Gray))))
                                                • Else - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • (Triggering player) Not equal to Player 10 (Light Blue)
                                                      • (Substring((Entered chat string), 9, 19)) Equal to light blue
                                                    • Then - Actions
                                                      • Player - Make (Triggering player) treat Player 10 (Light Blue) as an Enemy
                                                      • Game - Display to (All players) for 15.00 seconds the text: ((Name of (Triggering player)) + ( has unallied + (Name of Player 10 (Light Blue))))
                                                    • Else - Actions
            • Else - Actions
this is a subscipt ally/unally, hope this helped ^_^
 
Level 8
Joined
Mar 3, 2009
Messages
327
Theres a better way to do it. Ally/unally triggers suck.

Have you ever noticed the ally menu ingame? (F11)

You can make it useable by going

  • Game - Set Lock alliance settings to Off
in your initialization trigger. Its in Game - Set map flag

good luck with your map :D

Also, if you have trouble finding triggers, go new trigger, then above the trigger list where it says 'All' click it and then go search for text, and type in what youre looking for.
 
Status
Not open for further replies.
Top