| 01-20-2008, 07:40 PM | #1 |
I need to make a condition to test whether a chat can be seen by a particual player, or, alternatively. whether chat was sent to 'allies' or 'all'. Is there a known way to do this? |
| 01-20-2008, 07:51 PM | #2 |
I don't think that's possible. I searched through the GUI events, JASS TriggerRegister functions and the EVENT_ constants, but the only thing I can find is getting triggered when a player says something, retrieve who said it, and check if his message contains a certain substring or exact match. Nothing about who he sent it to or so. I first also thought about checking what someone sent, and then looping through the list of players to see who received the same message. But it seems there's even no way to know if a player received a message or not. Thank Blizzard for that.Or I can be totally wrong of course. ![]() |
| 01-20-2008, 11:01 PM | #3 | |
Quote:
--- @crazedcougar - Alternatively, why don't you make it so no one can see chat messages (http://www.wc3campaigns.net/showthread.php?t=80691), then create groups for who can see what. If someone wants to change who they can chat with add commands, like -red <message> for individuals, -team1/-allies <message> for teams/groups, and -join <red/team> for changing who the normal chat messages go to. In other words, use the link above to hid all chat messages, then when the game starts let everyone chat to everyone (through triggers), and then players can team up and such or you can select who chats with who. |
| 01-21-2008, 12:49 AM | #4 |
alright, thanks for the info! |
