Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Chat Algorithm

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    2
    My Mood
    Cheerful
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Chat Algorithm

    Hi, I'm making a game and I need some sort of way to map chat options/responses you have with npcs easily. I've been looking around but I can't find anything that isn't implemented into an engine. (Adventure Game Studio, GameMaker, e.t.c....) Any help to how I can do this?


  2. #2
    Forum VIP
    Join Date
    Oct 2010
    Posts
    275
    My Mood
    Cool
    Thanks
    32
    Thanked 54 Times in 47 Posts
    Blog Entries
    2

    Default Re: Chat Algorithm

    Well your not being very specific, and it certainly depends on what kind of game! If you are using a 3d game, it would be very different then if your using a 2d game. Either way, first you have to decide how you want it to work, and then you can start working on making it work. For example, if it was a 2d game, would you rather them click on it, or press a button near them? [I think that a button is more popular, and probably easier to implement]

  3. #3
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Chat Algorithm

    You mean triggers? In case of activating any event, a particular event gets called and executed, right?

  4. #4
    Junior Member
    Join Date
    Feb 2012
    Posts
    2
    My Mood
    Cheerful
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Chat Algorithm

    Sorry, what I meant is that I'm making a 2D RPG game, and I can create events to open some sort of chat scenario, but I can't figurre out how to organize the actual data for how the chat proceeds.

    Like you might walk up to an NPC and start the chat, and I want the NPC to say something like "Hello there!" and then provide options for the user to carry out different scenarios of the conversation.

Similar Threads

  1. cam and mic chat app
    By dave11791 in forum Java Networking
    Replies: 5
    Last Post: March 31st, 2013, 01:56 PM
  2. Chat Room in JSP
    By c.P.u1 in forum JavaServer Pages: JSP & JSTL
    Replies: 8
    Last Post: July 7th, 2011, 08:14 PM
  3. TCP chat attaching cipher is not running
    By Koren3 in forum Java Networking
    Replies: 4
    Last Post: May 19th, 2009, 03:52 AM
  4. Replies: 0
    Last Post: May 3rd, 2009, 11:55 AM
  5. SSL Chat implementation
    By Koren3 in forum Java Networking
    Replies: 6
    Last Post: April 24th, 2009, 09:20 AM

Tags for this Thread