How to let Nonoba Server listen to chats by users.

diadasdiadas zei

een tijd geleden | Bericht #1
Hey guys,

I 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
Laatst gewijzigd een tijd geleden

BIG KING 100BIG KING 100 zei

een tijd geleden | Bericht #2
what??

diadasdiadas zei

een tijd geleden | Bericht #3
Do 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!

JoshuaJewellJoshuaJewell zei

een tijd geleden | Bericht #4
Hey 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.

MysteryMystery zei

een tijd geleden | Bericht #5
Defining 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.

OliverOliver zei

een tijd geleden | Bericht #6
Woot Mystery!!!

I was just going to say that!

JoshuaJewellJoshuaJewell zei

een tijd geleden | Bericht #7
Thats a really good find Mystery where did you find that code?

MysteryMystery zei

een tijd geleden | Bericht #8
swoop

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

JoshuaJewellJoshuaJewell zei

een tijd geleden | Bericht #9
Ok 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.

Antwoord op onderwerp

Schrijf je nu in om te kunnen antwoorden op onderwerpen

Nonoba

nonoba.nl is een onafhankelijke spelletjes site waar je zowel individueel als gezamenlijk spelletjes gratis kunt spelen.

Developer gereedschap

Als je een flash spelontwerper bent hebben we gave gereedschappen die je kunnen helpen om nog betere spellen te ontwikkelen.

Geweldige Spellen

Waarom probeer je niet een van de beste online flah spellen die wij hebben voor nop?

Copyright ©2007-2012 Nonoba™ - All rights reserved.46.8ms on SERVER34096