[REQ Trigger] Ally/Unally

Level 14
Joined
Jul 28, 2009
Messages
1,093
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,093
  • 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!
 
Top