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.
EDIT: text trigger didn't get the whole trigger on.
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!)))
- If - Conditions
- Else - Actions
- If - Conditions
- 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!)))
- If - Conditions
- Else - Actions
- If - Conditions
- 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!)))
- If - Conditions
- Else - Actions
- If - Conditions
- 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!)))
- If - Conditions
- Else - Actions
- If - Conditions
- 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!)))
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- If - Conditions
- 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!)))
- If - Conditions
- Else - Actions
- If - Conditions
- 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!)))
- If - Conditions
- Else - Actions
- If - Conditions
- 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!)))
- If - Conditions
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Events
EDIT: text trigger didn't get the whole trigger on.