Messenger bug

Lord Regno

Active Member
Reaction score
19
This trigger only showing the name of the previous invitation...
Like if Red invite blue its stand you have invited red then then blue have answers and I invite teal its stand you have invited blue to your team.

Trigger:
  • Team Red
    • Events
      • Player - Player 1 (Red) types a chat message containing -invite as A substring
    • Conditions
    • Actions
      • Set temp_invite = invite_red_player
      • Set temp_hero = red_hero
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • temp_hero Equal to No unit
        • Then - Actions
          • Game - Display to (Player group((Triggering player))) the text: (playercolor[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r you most pick/load a hero first!))
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Substring((Entered chat string), 9, 12)) Equal to red
            • Then - Actions
              • Set invite_red_player = Player 1 (Red)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Hero level of temp_hero) - 10) Less than or equal to (Hero level of red_hero)
                  • ((Hero level of red_hero) - 10) Less than or equal to (Hero level of temp_hero)
                • Then - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (You have invited + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r to joine your team!)))
                  • Game - Display to (Player group(temp_invite)) the text: (playercolor[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r has asked you to joine his team!))
                  • Trigger - Turn on Red yes <gen>
                  • Trigger - Turn on Red no <gen>
                  • Trigger - Turn on Red time <gen>
                  • Countdown Timer - Start timer_red_invite as a One-shot timer that will expire in 30.00 seconds
                  • Trigger - Turn off (This trigger)
                • Else - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (The level difference is too high + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r can't joine your team!)))
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Substring((Entered chat string), 9, 13)) Equal to blue
            • Then - Actions
              • Set invite_red_player = Player 2 (Blue)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Hero level of temp_hero) - 10) Less than or equal to (Hero level of blue_hero)
                  • ((Hero level of blue_hero) - 10) Less than or equal to (Hero level of temp_hero)
                • Then - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (You have invited + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r to joine your team!)))
                  • Game - Display to (Player group(temp_invite)) the text: (playercolor[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r has asked you to joine his team!))
                  • Trigger - Turn on Red yes <gen>
                  • Trigger - Turn on Red no <gen>
                  • Trigger - Turn on Red time <gen>
                  • Countdown Timer - Start timer_red_invite as a One-shot timer that will expire in 30.00 seconds
                  • Trigger - Turn off (This trigger)
                • Else - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (The level difference is too high + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r can't joine your team!)))
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Substring((Entered chat string), 9, 13)) Equal to teal
            • Then - Actions
              • Set invite_red_player = Player 3 (Teal)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Hero level of temp_hero) - 10) Less than or equal to (Hero level of teal_hero)
                  • ((Hero level of teal_hero) - 10) Less than or equal to (Hero level of temp_hero)
                • Then - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (You have invited + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r to joine your team!)))
                  • Game - Display to (Player group(temp_invite)) the text: (playercolor[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r has asked you to joine his team!))
                  • Trigger - Turn on Red yes <gen>
                  • Trigger - Turn on Red no <gen>
                  • Trigger - Turn on Red time <gen>
                  • Countdown Timer - Start timer_red_invite as a One-shot timer that will expire in 30.00 seconds
                  • Trigger - Turn off (This trigger)
                • Else - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (The level difference is too high + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r can't joine your team!)))
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Substring((Entered chat string), 9, 15)) Equal to purple
            • Then - Actions
              • Set invite_red_player = Player 4 (Purple)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Hero level of temp_hero) - 10) Less than or equal to (Hero level of purple_hero)
                  • ((Hero level of purple_hero) - 10) Less than or equal to (Hero level of temp_hero)
                • Then - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (You have invited + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r to joine your team!)))
                  • Game - Display to (Player group(temp_invite)) the text: (playercolor[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r has asked you to joine his team!))
                  • Trigger - Turn on Red yes <gen>
                  • Trigger - Turn on Red no <gen>
                  • Trigger - Turn on Red time <gen>
                  • Countdown Timer - Start timer_red_invite as a One-shot timer that will expire in 30.00 seconds
                  • Trigger - Turn off (This trigger)
                • Else - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (The level difference is too high + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r can't joine your team!)))
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Substring((Entered chat string), 9, 15)) Equal to yellow
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Hero level of temp_hero) - 10) Less than or equal to (Hero level of yellow_hero)
                  • ((Hero level of yellow_hero) - 10) Less than or equal to (Hero level of temp_hero)
                • Then - Actions
                  • Set invite_red_player = Player 5 (Yellow)
                  • Game - Display to (Player group((Triggering player))) the text: (You have invited + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r to joine your team!)))
                  • Game - Display to (Player group(temp_invite)) the text: (playercolor[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r has asked you to joine his team!))
                  • Trigger - Turn on Red yes <gen>
                  • Trigger - Turn on Red no <gen>
                  • Trigger - Turn on Red time <gen>
                  • Countdown Timer - Start timer_red_invite as a One-shot timer that will expire in 30.00 seconds
                  • Trigger - Turn off (This trigger)
                • Else - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (The level difference is too high + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r can't joine your team!)))
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Substring((Entered chat string), 9, 15)) Equal to orange
            • Then - Actions
              • Set invite_red_player = Player 6 (Orange)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Hero level of temp_hero) - 10) Less than or equal to (Hero level of orange_hero)
                  • ((Hero level of orange_hero) - 10) Less than or equal to (Hero level of temp_hero)
                • Then - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (You have invited + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r to joine your team!)))
                  • Game - Display to (Player group(temp_invite)) the text: (playercolor[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r has asked you to joine his team!))
                  • Trigger - Turn on Red yes <gen>
                  • Trigger - Turn on Red no <gen>
                  • Trigger - Turn on Red time <gen>
                  • Countdown Timer - Start timer_red_invite as a One-shot timer that will expire in 30.00 seconds
                  • Trigger - Turn off (This trigger)
                • Else - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (The level difference is too high + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r can't joine your team!)))
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Substring((Entered chat string), 9, 14)) Equal to green
            • Then - Actions
              • Set invite_red_player = Player 7 (Green)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Hero level of temp_hero) - 10) Less than or equal to (Hero level of green_hero)
                  • ((Hero level of green_hero) - 10) Less than or equal to (Hero level of temp_hero)
                • Then - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (You have invited + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r to joine your team!)))
                  • Game - Display to (Player group(temp_invite)) the text: (playercolor[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r has asked you to joine his team!))
                  • Trigger - Turn on Red yes <gen>
                  • Trigger - Turn on Red no <gen>
                  • Trigger - Turn on Red time <gen>
                  • Countdown Timer - Start timer_red_invite as a One-shot timer that will expire in 30.00 seconds
                  • Trigger - Turn off (This trigger)
                • Else - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (The level difference is too high + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r can't joine your team!)))
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Substring((Entered chat string), 9, 13)) Equal to pink
            • Then - Actions
              • Set invite_red_player = Player 8 (Pink)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Hero level of temp_hero) - 10) Less than or equal to (Hero level of pink_hero)
                  • ((Hero level of pink_hero) - 10) Less than or equal to (Hero level of temp_hero)
                • Then - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (You have invited + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r to joine your team!)))
                  • Game - Display to (Player group(temp_invite)) the text: (playercolor[(Player number of (Triggering player))] + ((Name of (Triggering player)) + |r has asked you to joine his team!))
                  • Trigger - Turn on Red yes <gen>
                  • Trigger - Turn on Red no <gen>
                  • Trigger - Turn on Red time <gen>
                  • Countdown Timer - Start timer_red_invite as a One-shot timer that will expire in 30.00 seconds
                  • Trigger - Turn off (This trigger)
                • Else - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (The level difference is too high + (playercolor[(Player number of temp_invite)] + ((Name of (Player((Player number of temp_invite)))) + |r can't joine your team!)))
            • Else - Actions


EDIT: text trigger didn't get the whole trigger on.
 

NoobImbaPro

You can change this now in User CP.
Reaction score
60
what you want to do???
you want to change another players force???
or you want to make a MMORPG "party"???
 

Banditsin

New Member
Reaction score
1
A party. Everything works but the display message is wrong.

Try placing the
Trigger:
  • Set invite_red_player = invite_red_player
under the
Trigger:
  • Set invite_red_player = Player 1 (Red)
instead
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top