GPWiki.org
GPWiki.org
It is currently Wed May 22, 2013 1:50 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Designing Dialogue Trees
PostPosted: Sun Oct 17, 2010 2:51 am 
Novice

Joined: Mon Apr 12, 2010 8:17 pm
Posts: 5
What are some ways to go about creating dialogue trees? I'm working on a "Choose Your Own Adventure" gameplay aspect.

So far, I've created a prototype that utilizes a list for the branching. Each item in the list contains a multiple strings and a corresponding index number. Player selects a string and gets forwarded to that index in the list. Each list item contains all the possible strings for all the dialogue options, so it's kind of repetitive at times, but... that's what I've come up with.

Any ideas about other ways to go about dialogue trees?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 17, 2010 7:09 am 
Technomaniac

Joined: Sun Dec 05, 2004 11:27 am
Posts: 3249
Location: Sydney, Australia
It might be worth adding a restriction to prevent the same line from being used twice in one "conversation".

_________________
Trying is the first step towards failure
b


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 17, 2010 10:40 am 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2217
Location: England
If I was doing this, I'd think about each conversation fragment, and create a struct for those with the following properties:

Code:
Type Convo
  Sentence as String   //The string which the NPC says
  FragmentDone as Boolean // Can be set true when heard. This could be looked up as a trigger condition in the story.
  ReplyOption(8) as String // Reply strings the player can give. 
  ReplyOptionDone(8) as Boolean // Ability to mark a reply option after it has been used. This can be set true to prevent it from being asked again.
  ReplyGoto(8) as Long // The conversation fragment this reply leads to.
End Type

Dim Convo(1023) as Convo
etc

_________________
I ain't pushing no moon buttons.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group