Long dialog trees

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
MaximB
Newbie
Posts: 3
Joined: Sat Oct 01, 2011 6:23 am
Contact:

Long dialog trees

#1 Post by MaximB »

Hello,
I wonder, how do you manage long and complicated dialog trees?
Which programs do you use and how do you keep track of the trees?
How do you later implant it in Renpy without being overwhelmed by the amount of options/trees?
Any suggestions?

mikolajspy
Regular
Posts: 169
Joined: Sun Jun 04, 2017 12:05 pm
Completed: Too many, check signature
Deviantart: mikolajspy
Location: Wrocław, Poland
Contact:

Re: Long dialog trees

#2 Post by mikolajspy »

When I was working on my first game, I used free software Twine to make an layout of the branching.
http://twinery.org/

And when comes to RenPy implementation, you can divide it in multiple files. And of course, make good use of labels (name it, so you can easily know later what was where)!

If each menu is complicated, it might be easier and cleaner to do something like:

Code: Select all

menu Menu1:
    "Option 1":
        jump Option1
    "Option 2:
        jump Option2
     #... and so on

label Option1:
    mc "I chose Option 1 !
    mc "From here, I can choose another ones...
    menu Menu2:
        "Option 1_2":
            mc "OK, thanks, but I have more questions..."
            jump Menu1
     # the rest of options and labels

User avatar
arty
Regular
Posts: 120
Joined: Sat Jan 06, 2018 11:55 am
Completed: White Monday
Projects: HATE is a 4 Letter Word
Organization: KATHARSIS ART
itch: artys-games
Contact:

Re: Long dialog trees

#3 Post by arty »

When I started my first attempts at using Renpy, I ended up with insanely complicated dialogue. You can probably imagine that it took me about three miliseconds to get completely lost in my own code.

What you could do is:
1) Lay out the dialogue in a program like yED (it's a free graph software). If your project is big and complicated, you could consider getting a single user license for articy:draft. It's not free (about 70€ per year, although you can test it for free) but I was amazed by how much it helped with untangling complex branching dialogue/story.
2) Once you have your outline graphically laid out, use a code structure like mikolajspy suggested. Look at every branch of your dialogue and make a label for each of them, then just code them out one after another.

I also suggest using sublabels for this purpose. I like to split up my scenes into files and assign a label to each one, then use sublabels inside the file. It looks something like this:

File 1:

Code: Select all

label scene1:
    speaker "Choose one!"
    menu:
        "Option 1":
            jump .choice1
        "Option 2":
            jump .choice2
    label .choice1:
        speaker "Something!"
        jump .afterchoice
    label .choice2:
       speaker "Something else!"
    label .afterchoice:
        speaker "Moving on..."
    jump scene2
File 2:

Code: Select all

label scene2:
    speaker "Stuff happens..."
    label .choice1:
        speaker "You can now simply reuse choice1, choice2, and afterchoice."
    jump scene3
And so on.

That way you can re-use choice1 and choice2 etc as many times as you want inside your project.
Sorry if this was redundant info! Just noticed this and thought I'd point it out! I'm also not super experienced with Renpy so I might be talking out of my a.. here ...

User avatar
Lesleigh63
Miko-Class Veteran
Posts: 559
Joined: Fri May 31, 2013 7:59 pm
Completed: House of Dolls; Lads in Distress - Nano'16; Delusion Gallery Nano'18
Projects: BL VN
Deviantart: Lesleigh63
Contact:

Re: Long dialog trees

#4 Post by Lesleigh63 »

I use Freeplane to help map the branching options out prior to putting everything in Renpy.
Image

User avatar
papillon
Arbiter of the Internets
Posts: 4107
Joined: Tue Aug 26, 2003 4:37 am
Completed: lots; see website!
Projects: something mysterious involving yuri, usually
Organization: Hanako Games
Tumblr: hanakogames
Contact:

Re: Long dialog trees

#5 Post by papillon »

I just write it in a text program, indenting as necessary. I think I have the right kind of brain to handle branching more easily than others do. I'm aware this isn't exactly helpful advice :D

On the other hand I do rely on printed calendars to help me track the advancement of parallel plotlines.

User avatar
Katy133
Miko-Class Veteran
Posts: 704
Joined: Sat Nov 16, 2013 1:21 pm
Completed: Eight Sweets, The Heart of Tales, [redacted] Life, Must Love Jaws, A Tune at the End of the World, Three Guys That Paint, The Journey of Ignorance, Portal 2.5.
Projects: The Butler Detective
Tumblr: katy-133
Deviantart: Katy133
Soundcloud: Katy133
itch: katy133
Location: Canada
Contact:

Re: Long dialog trees

#6 Post by Katy133 »

I write the script in Word 2013 and use the Collapsible Header tool (I separate scenes--and sometimes, longer choice routes--under different headers). If I need to jump to a specific scene I'll use the Find Word hotkey (Ctrl+F) and type in the sentence or scene I want to reach.
ImageImage

My Website, which lists my visual novels.
Become a patron on my Patreon!

Post Reply

Who is online

Users browsing this forum: No registered users