Jump to content
  • Advertisement
Sign in to follow this  
zigboy

Conversation tree

This topic is 4243 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!