How to let Nonoba Server listen to chats by users.
BIG KING 100 zei
een tijd geleden | Bericht #2what??
diadas zei
een tijd geleden | Bericht #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 zei
een tijd geleden | Bericht #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 zei
een tijd geleden | Bericht #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 zei
een tijd geleden | Bericht #6Woot Mystery!!!
I was just going to say that!
I was just going to say that!
JoshuaJewell zei
een tijd geleden | Bericht #7Thats a really good find Mystery where did you find that code?
Mystery zei
een tijd geleden | Bericht #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.
Laatst gewijzigd een tijd geleden
JoshuaJewell zei
een tijd geleden | Bericht #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.
Antwoord op onderwerp
Schrijf je nu in om te kunnen antwoorden op onderwerpen
diadas zei
een tijd geleden | Bericht #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