How to let Nonoba Server listen to chats by users.
BIG KING 100说
很久以前 | 帖子#2what??
diadas说
很久以前 | 帖子#3Do you know multiplayer games?
I think so.
Do you know the Chat in these multiplayer games?
I think so, too.
If you enter something into this chat, I want the server to search for keywords in the words you entered.
@BIG-KING-100: If you don't develop games or any other programming languages which uses events, you won't understand my question!
I think so.
Do you know the Chat in these multiplayer games?
I think so, too.
If you enter something into this chat, I want the server to search for keywords in the words you entered.
@BIG-KING-100: If you don't develop games or any other programming languages which uses events, you won't understand my question!
JoshuaJewell说
很久以前 | 帖子#4Hey diadas I think I understand what you are trying to accomplish and do not think it is currently possible, at least not easily.
I think the chat window code may be loaded into the flash file as your game loads. Also looking at the api documentation and through person experience I have seen no way to receive a message every time the users submits text into the chat window.
Hopefully a dev can give you a more definitive answer.
I think the chat window code may be loaded into the flash file as your game loads. Also looking at the api documentation and through person experience I have seen no way to receive a message every time the users submits text into the chat window.
Hopefully a dev can give you a more definitive answer.
Mystery说
很久以前 | 帖子#5Defining a HandleChatMessage() inside your NonobaGame seems to be what you needed to do. If you want to determine for which user, you can check the 'user' parameter before proceeding.
Oliver说
很久以前 | 帖子#6Woot Mystery!!!
I was just going to say that!
I was just going to say that!
JoshuaJewell说
很久以前 | 帖子#7Thats a really good find Mystery where did you find that code?
Mystery说
很久以前 | 帖子#8swoop
They're all in the documentation, http://nonoba.com/developers/documentation; I just copypasted the code from the NonobaGame::HandleChatMessage section.
They're all in the documentation, http://nonoba.com/developers/documentation; I just copypasted the code from the NonobaGame::HandleChatMessage section.
最后编辑很久以前
JoshuaJewell说
很久以前 | 帖子#9Ok I see, when I was scanning the documentation I was only looking where there were public functions that had a url link to a spot on the page. These call was not in there so I over looked it.
Expecting the data to look a certain way can help when glossing over stuff, but in this case it burned me.
Expecting the data to look a certain way can help when glossing over stuff, but in this case it burned me.
回复主题
现在就注册以回复主题
diadas说
很久以前 | 帖子#1I want to listen to keywords in the Nonoba chats. Like "yes" and "no" if I want to make polls. I know that a word game uses a similar function, because there you have to draw a word and the others have to enter their suggestions into the chat.
Regards,
Diadas