Page 1 of 1

Is it possible to change the space between paragraphs in NVL mode?

Posted: Fri Dec 15, 2017 4:26 am
by Lochana
I'm working on a visual novel, and I decided to use NVL mode for the introduction segment. The problem I'm having is the space between paragraphs

I found this code in the documentation:

Code: Select all

init python:
    style.nvl_vbox.box_spacing = 10
I thought that this code might be able to change the space between paragraphs and make it "0". So that there would be no space left between new NVL lines, but it doesn't seem to work.

Can anyone help me with this?

Re: Is it possible to change the space between paragraphs in NVL mode?

Posted: Mon Jan 01, 2018 9:32 pm
by Dravencour
Hi there! As someone just getting into Ren.Py and NVL myself, I was having a few problems with just what you're talking about.

The way that Ren.Py's NVL format is set up normally, each paragraph in NVL (that is, each major section of text that you put in quotes) functions more or less like an ADV text box, which is limited to around four lines per box using default settings without running over, making for some pretty wonky-looking paragraph spacing based on how many lines of text the paragraph took up. Thankfully, there's a rather simple way to get around this state of affairs.

You will want to get into gui.rpy and change gui.nvl_height to "None". This will allow the textboxes that NVL uses for paragraphs to dynamically adjust their height based on how large the paragraph is, so you won't have to deal with large spaces beneath single-line paragraph textboxes or smaller spaces beneath multiline paragraph textboxes, as well as allowing you to write paragraphs with more lines than the standard ADV textbox limit.

Once that's done, you'll want to mess around a bit with gui.nvl_spacing, which defaults to 10. Depending on the font you are using, how large you want your text to be and your general paragraph preferences, you may want the value a little higher in order to put some spacing in between your paragraphs. I generally prefer an nvl_spacing value of 20 for working with Palatino Linotype or Deja Vu Sans.

Re: Is it possible to change the space between paragraphs in NVL mode?

Posted: Mon Apr 20, 2020 11:51 pm
by Dimorphodon
Thank you; this was helpful for something I was working on!