|
3.
|
|
|
In this tutorial, we will explain how to make an NVL-mode game using Ren'Py. This tutorial assumes that you are already familiar with the basics of Ren'Py, as explained in the :doc:`Quickstart manual<quickstart>`.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/nvl_mode.rst:15
|
|
4.
|
|
|
Getting Started
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/nvl_mode.rst:20
|
|
5.
|
|
|
NVL-mode can be added to a Ren'Py script in two steps. The first is to declare the characters to use NVL-mode, and the second is to add ``nvl clear`` statements at the end of each page.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/nvl_mode.rst:22
|
|
6.
|
|
|
Characters can be declared to use NVL-mode by adding a ``kind=nvl`` parameter to each of the Character declarations. For example, if we the character declarations from the Quickstart manual are::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/nvl_mode.rst:26
|
|
7.
|
|
|
Changed to use NVL-mode, those declarations become::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/nvl_mode.rst:33
|
|
8.
|
|
|
Note that we have also added an NVL-mode declaration of ``narrator``. The ``narrator`` character is used to speak lines that do not have another character name associated with it.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/nvl_mode.rst:39
|
|
9.
|
|
|
If we ran the game like this, the first few lines would display normally, but after a while, lines would begin displaying below the bottom of the screen. To break the script into pages, include an ``nvl clear`` statement after each page.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/nvl_mode.rst:43
|
|
10.
|
|
|
The following is an example script with pagination::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/nvl_mode.rst:48
|
|
11.
|
|
|
While nvl-mode games generally have more text per paragraph, this example demonstrates a basic NVL-mode script. (Suitable for use in a kinetic novel that does not have transitions.)
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/nvl_mode.rst:65
|
|
12.
|
|
|
Menus
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/nvl_mode.rst:70
|