Original Post
im creating a text adventure. ive got a lot done, the parser, the game class, the room class, the commands, the player class, the items, etc. i want to add characters. i want to do a talk command, and a say command. if there is a character in a room, you can say talk man and it would do something like this Man Says: "Hello. what do you need?" 1)what is your name? 2)do you have money? 3)where is the princess? 4)nothing, thanks and you can go: say 3 to ask where the princess, where upon he would say Man Says: "Wouldn't you like to know? Whats in it for me?" 1) money 2) sexual favors 3) nothing. anyway, i want to make a flexable interface for conversations with charaters, where there can be a tree of conversational flow, with any number of responses available. what type of data structure can/should i use for conversations like this? any ideas? and how would i implement something like the character giving the player an item once they reach a specific node of the conversation? if you guys could just give some ideas or insight, that would be awesome, thanks! -scott