chat commands..kinda

kiogra

New Member
Reaction score
2
hi, im putting allying in my new game... and i know how to put it in, but not the short way.
i did something like this in my last game:
E: Player 1 types message -ally blue as a exact match,
and that would work. but i would have to do that for evryplayer.
How would i make something like:
E: A player types message -ally blue as an exact match

I bet its pretty basic, but i just cant figure it out
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
this is the only way I know of doing something like that

Code:
AI Level Up
    Events
        Player - Player 1 (Red) types a chat message containing -lvl max as An exact match
        Player - Player 2 (Blue) types a chat message containing -lvl max as An exact match
        Player - Player 3 (Teal) types a chat message containing -lvl max as An exact match
        Player - Player 4 (Purple) types a chat message containing -lvl max as An exact match
        Player - Player 5 (Yellow) types a chat message containing -lvl max as An exact match
        Player - Player 6 (Orange) types a chat message containing -lvl max as An exact match
        Player - Player 7 (Green) types a chat message containing -lvl max as An exact match
        Player - Player 8 (Pink) types a chat message containing -lvl max as An exact match
        Player - Player 9 (Gray) types a chat message containing -lvl max as An exact match
        Player - Player 10 (Light Blue) types a chat message containing -lvl max as An exact match
    Conditions
    Actions
 

Furberg

Ultra Cool Member
Reaction score
45
i think the only way is too do it like this. Here it is mate:
Code:
Ally Blue
    Events
        Player - Player 1 (Red) types a chat message containing -ally blue as An exact match
        Player - Player 3 (Teal) types a chat message containing -ally blue as An exact match
        Player - Player 4 (Purple) types a chat message containing -ally blue as An exact match
        Player - Player 5 (Yellow) types a chat message containing -ally blue as An exact match
        Player - Player 6 (Orange) types a chat message containing -ally blue as An exact match
        Player - Player 7 (Green) types a chat message containing -ally blue as An exact match
        Player - Player 8 (Pink) types a chat message containing -ally blue as An exact match
        Player - Player 9 (Gray) types a chat message containing -ally blue as An exact match
        Player - Player 10 (Light Blue) types a chat message containing -ally blue as An exact match
        Player - Player 11 (Dark Green) types a chat message containing -ally blue as An exact match
        Player - Player 12 (Brown) types a chat message containing -ally blue as An exact match
    Conditions
    Actions
        Player - Make (Triggering player) treat Player 2 (Blue) as an Ally with shared vision

And if you wanna change who the player should be then change the:
Code:
    Actions
        Player - Make (Triggering player) treat [B]Player 2 (Blue)[/B] as an Ally with shared vision
:thup:
 

hasslarn

New Member
Reaction score
20
this way u can just type like -ally blue or -ally red then ull be ally with em
just change the entred chat sting for each guy count like this
-ally b(this is 7 letters)

Code:
Ally
    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 11 (Dark Green) types a chat message containing -ally as A substring
        Player - Player 12 (Brown) types a chat message containing -ally as A substring
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Substring((Entered chat string), 7, 9)) Equal to red
            Then - Actions
                Player - Make (Triggering player) treat Player 1 (Red) as an Ally with shared vision
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Substring((Entered chat string), 7, 10)) Equal to blue
                    Then - Actions
                        Player - Make (Triggering player) treat Player 2 (Blue) as an Ally with shared vision
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Substring((Entered chat string), 7, 10)) Equal to teal
                            Then - Actions
                                Player - Make (Triggering player) treat Player 3 (Teal) as an Ally with shared vision
                            Else - Actions

make the same thing for enemy just change some stuffs
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top