Conversation tree
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!
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement