Skip to main content
gamedev.net
🔒 Locked

Conversation tree

Started by zigboy Mar 6, 2007 at 3:22 PM 1 replies 600+ views
Original Post
zigboy
zigboy
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!
Ravuya
Ravuya
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.
zigboy
zigboy
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.