Sign in to follow this  
zigboy

Conversation tree

Recommended Posts

I want to make a conversation tree to work on a small device (cell phone). It works like most NPC conversations with decisions and branches and possible global game variables affecting branches. I assume I would use a tree unless there's a more optimal way? Does anyone know any articles and websites I can look at for more information? I understand trees but am fairly new to using them besides what I did in school. Thanks!

Share this post


Link to post
Share on other sites
If you're not going to have any cycles, a tree should probably be ideal.

Even if you are going to have cycles in the conversation, a tree will work okay. Just be careful when you're loading it.

In the past, I've done the "say the magic word" conversation systems in an assembly-style syntax and stored a pointer to the subtree in a hashmap, but I assume yours is just a standard SCUMM-style conversation tree.

Most of your work will probably be designing and loading "meta" nodes (game variables, etc) and knowing when to evaluate them.

Share this post


Link to post
Share on other sites
Actually I just want a multiple choice decisions rather than "guess the word".
Also, is there a more authentic term for "multiple choice branching conversation trees" that I can google for?

Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this