You can't make a player send a chat message, but you can send a fake one using the Following format when you send it [Type of chat] Player's name : Message.
Edit: Note that there is no way to pull a players guild name currently, so you can't imitate that.
OK, I was hoping since Blizzard can do it with their AI they allowed map makers the ability to use the same interface they did.
Just printing a message to their screen won't be the same because it won't appear in the chat section. I could fake it by printing to the same section of screen, but again that would not work as it would overlap with text already in the chat and not behave as a chat message would...
Unless I removed the chat window all together, intercepted players communication and faked the whole thing but even that introduces problems with what I had in mind.
Actually there's a function called text message. If you use it to send the message to the chat area it will show properly and not overlap or anything, and would behave like a regular chat message.
I believe text message will send it to the chat area, but not to the F11 (or whatever the key is) menu. However, I think send transmission will send it to both.
I want to know if it is possible to get a computer controlled player to send a chat message.
When you have an AI ally in melee games the ally will send you messages such as "expanding to this location" and ping the map.
If you are facing a computer opponent it will say "gg" at the end of the match before it surrenders.
I want to know if it is possible to send my own chat message from a player.
Thank you if anyone knows the answer.
You can't make a player send a chat message, but you can send a fake one using the Following format when you send it
[Type of chat] Player's name : Message.
Edit: Note that there is no way to pull a players guild name currently, so you can't imitate that.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
OK, I was hoping since Blizzard can do it with their AI they allowed map makers the ability to use the same interface they did.
Just printing a message to their screen won't be the same because it won't appear in the chat section. I could fake it by printing to the same section of screen, but again that would not work as it would overlap with text already in the chat and not behave as a chat message would...
Unless I removed the chat window all together, intercepted players communication and faked the whole thing but even that introduces problems with what I had in mind.
@finiteturtles: Go
Actually there's a function called text message. If you use it to send the message to the chat area it will show properly and not overlap or anything, and would behave like a regular chat message.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
I believe text message will send it to the chat area, but not to the F11 (or whatever the key is) menu. However, I think send transmission will send it to both.
@finiteturtles:
Events
Unit - Any Unit Enters (Entire map)
Local Variables
Conditions
Actions
UI - Display "ABCDEFG" for (All players) to Subtitle area
UI - Display "ABCDEFG" for (All players) to Chat area
UI - Display "ABCDEFG" for (Active Players) to Debug area
Change it accordingly to what you want.