• 🏆 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!

[REQ Trigger] Ally/Unally

Status
Not open for further replies.
Level 14
Joined
Jul 28, 2009
Messages
1,085
Hey guys, me again.

I need a GUI trigger that can make red type:

-Ally (Color) (Color)

And when he does, a message shall say:

(PlayerRedName) allied (Colorname) with (Colorname).

And ofc make them ally.

And when he types:

-UnAlly (Color) (Color)

They shall unally,
and a message shall say:

(PlayerRedName) Unallied (Colorname) and (Colorname).


Thanks! :D
+Rep
 
Level 17
Joined
Jun 17, 2010
Messages
2,275
  • Red Command
    • Events
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + blue)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + teal)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + purple)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + yellow)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + orange)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + green)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + pink)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + gray)) as An exact match
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to (-ally + ( red + blue))
        • Then - Actions
          • Game - Display to (All players) the text: ((Name of (Triggering player)) + ( allied + red with blue.))
          • Player Group - Make Player Group - Player 1 (Red) treat Player Group - Player 2 (Blue) as an Ally
        • Else - Actions
Just continue the events, and add more if then else statements that are changed based on what you need.
 
Level 14
Joined
Jul 28, 2009
Messages
1,085
  • Red Command
    • Events
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + blue)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + teal)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + purple)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + yellow)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + orange)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + green)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + pink)) as An exact match
      • Player - Player 1 (Red) types a chat message containing (-ally + ( red + gray)) as An exact match
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to (-ally + ( red + blue))
        • Then - Actions
          • Game - Display to (All players) the text: ((Name of (Triggering player)) + ( allied + red with blue.))
          • Player Group - Make Player Group - Player 1 (Red) treat Player Group - Player 2 (Blue) as an Ally
        • Else - Actions
Just continue the events, and add more if then else statements that are changed based on what you need.


Could you please put it in a map for me? :)
+Rep!
 
Status
Not open for further replies.
Top