- Joined
- Jul 20, 2009
- Messages
- 295
I have absolutely no idea why the following trigger does not work. =/
I need your help, please.
Hero = A unit owned by a player
PlayerColour = Just a string e.g. |cffff0000
Party = Player Group (Arrayed)
(I have set Players 1-3 to be in Party Numbers 1-3 each in order to check if it works if I join another player other than player 1)
Here is how I want it to be:
*If "-" is typed with something else, no Game Display shows. (e.g. "-roll")
*If anything is typed except "-" at start, all that is typed is showed to players that have their units near the Player's Hero that typed of distance 1000. (e.g. "Hello there")
*If "-party"/"-p" Only Shows the text after "-party"/"-p" to Player Group, Party. (e.g. "-party Come guys, follow me.")
*If "-shout"/"-s" Shows Game Display to everyone containing the text typed after "-shout"/"-s". (e.g. "-shout I will help you all in few seconds")
*If "-whisper (Player Number)"/"-w (Player Number)" shows the text typed after "-whisper (Player Number)"/"-w (Player Number)" as Game Display only to the player's number entered and shows to the typer also the message has received and what he/she typed. (e.g. "-w 3 come on teal.. hurry up before time is up")
The problem is:
*No Game Display shows for each type of Chat, e.g -whisper/-shout...
+2 Rep for the helper. If anything is not explained well, please ask. If Colour is annoying you, I'll change it.
I need your help, please.
-
Chat System
-
Events
-
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
-
Player - Player 2 (Blue) types a chat message containing <Empty String> as A substring
-
Player - Player 3 (Teal) types a chat message containing <Empty String> as A substring
-
Player - Player 4 (Purple) types a chat message containing <Empty String> as A substring
-
Player - Player 5 (Yellow) types a chat message containing <Empty String> as A substring
-
Player - Player 6 (Orange) types a chat message containing <Empty String> as A substring
-
Player - Player 7 (Green) types a chat message containing <Empty String> as A substring
-
Player - Player 8 (Pink) types a chat message containing <Empty String> as A substring
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(-, 1, 1))
-
-
Then - Actions
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(<Empty String>, 1, 999))
-
-
Then - Actions
-
Unit Group - Pick every unit in (Units within 1000.00 of (Position of Hero[(Player number of (Triggering player))])) and do (Actions)
-
Loop - Actions
-
Game - Display to (Player group((Owner of (Picked unit)))) the text: ((Player_Colour[(Player number of (Triggering player))] + ((Name of (Triggering player)) + :|r )) + (Substring(<Empty String>, 1, 999)))
-
-
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(-whisper , 1, 9))
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(1 , 10, 11))
-
-
Then - Actions
-
Game - Display to (Player group((Triggering player))) the text: ((|cffD843E9To|r + ((Player_Colour[1] + (Name of Player 1 (Red))) + :|r|cffD843E9(Whisper)|r )) + (|cffD843E9 + ((Substring(<Empty String>, 12, 999)) + |r)))
-
Game - Display to (Player group(Player 1 (Red))) the text: ((|cffD843E9From|r + ((Player_Colour[(Player number of (Triggering player))] + (Name of (Triggering player))) + :|r|cffD843E9(Whisper)|r )) + (|cffD843E9 + ((Substring(<Empty String>, 12, 999)) + |r)))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(2 , 10, 11))
-
-
Then - Actions
-
Game - Display to (Player group((Triggering player))) the text: ((|cffD843E9To|r + ((Player_Colour[2] + (Name of Player 2 (Blue))) + :|r|cffD843E9(Whisper)|r )) + (|cffD843E9 + ((Substring(<Empty String>, 12, 999)) + |r)))
-
Game - Display to (Player group(Player 2 (Blue))) the text: ((|cffD843E9From|r + ((Player_Colour[(Player number of (Triggering player))] + (Name of (Triggering player))) + :|r|cffD843E9(Whisper)|r )) + (|cffD843E9 + ((Substring(<Empty String>, 12, 999)) + |r)))
-
-
Else - Actions
-
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(-w , 1, 3))
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(1 , 4, 5))
-
-
Then - Actions
-
Game - Display to (Player group((Triggering player))) the text: ((|cffD843E9To|r + ((Player_Colour[1] + (Name of Player 1 (Red))) + :|r|cffD843E9(Whisper)|r )) + (|cffD843E9 + ((Substring(<Empty String>, 6, 999)) + |r)))
-
Game - Display to (Player group(Player 1 (Red))) the text: ((|cffD843E9From|r + ((Player_Colour[(Player number of (Triggering player))] + (Name of (Triggering player))) + :|r|cffD843E9(Whisper)|r )) + (|cffD843E9 + ((Substring(<Empty String>, 6, 999)) + |r)))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(2 , 4, 5))
-
-
Then - Actions
-
Game - Display to (Player group((Triggering player))) the text: ((|cffD843E9To|r + ((Player_Colour[2] + (Name of Player 2 (Blue))) + :|r|cffD843E9(Whisper)|r )) + (|cffD843E9 + ((Substring(<Empty String>, 6, 999)) + |r)))
-
Game - Display to (Player group(Player 2 (Blue))) the text: ((|cffD843E9From|r + ((Player_Colour[(Player number of (Triggering player))] + (Name of (Triggering player))) + :|r|cffD843E9(Whisper)|r )) + (|cffD843E9 + ((Substring(<Empty String>, 6, 999)) + |r)))
-
-
Else - Actions
-
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(-party , 1, 6))
-
-
Then - Actions
-
Game - Display to Party[(Player number of (Triggering player))] the text: ((Player_Colour[(Player number of (Triggering player))] + ((Name of (Triggering player)) + :|r|cff00FFFF(Party)|r )) + (Substring(<Empty String>, 7, 999)))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(-p , 1, 3))
-
-
Then - Actions
-
Game - Display to Party[(Player number of (Triggering player))] the text: ((Player_Colour[(Player number of (Triggering player))] + ((Name of (Triggering player)) + :|r|cff00FFFF(Party)|r )) + (Substring(<Empty String>, 4, 999)))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(-shout , 1, 7))
-
-
Then - Actions
-
Game - Display to (All players) the text: ((Player_Colour[(Player number of (Triggering player))] + ((Name of (Triggering player)) + :|r|cffFF8000(Shout)|r )) + (Substring(<Empty String>, 8, 999)))
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Entered chat string) Equal to (Substring(-s , 1, 3))
-
-
Then - Actions
-
Game - Display to (All players) the text: ((Player_Colour[(Player number of (Triggering player))] + ((Name of (Triggering player)) + :|r|cffFF8000(Shout)|r )) + (Substring(<Empty String>, 4, 999)))
-
-
Else - Actions
-
-
-
PlayerColour = Just a string e.g. |cffff0000
Party = Player Group (Arrayed)
(I have set Players 1-3 to be in Party Numbers 1-3 each in order to check if it works if I join another player other than player 1)
Here is how I want it to be:
*If "-" is typed with something else, no Game Display shows. (e.g. "-roll")
*If anything is typed except "-" at start, all that is typed is showed to players that have their units near the Player's Hero that typed of distance 1000. (e.g. "Hello there")
*If "-party"/"-p" Only Shows the text after "-party"/"-p" to Player Group, Party. (e.g. "-party Come guys, follow me.")
*If "-shout"/"-s" Shows Game Display to everyone containing the text typed after "-shout"/"-s". (e.g. "-shout I will help you all in few seconds")
*If "-whisper (Player Number)"/"-w (Player Number)" shows the text typed after "-whisper (Player Number)"/"-w (Player Number)" as Game Display only to the player's number entered and shows to the typer also the message has received and what he/she typed. (e.g. "-w 3 come on teal.. hurry up before time is up")
The problem is:
*No Game Display shows for each type of Chat, e.g -whisper/-shout...
+2 Rep for the helper. If anything is not explained well, please ask. If Colour is annoying you, I'll change it.