How to switch between NVL and ADV mode

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
SegaOfPlaneptune
Newbie
Posts: 10
Joined: Sat Dec 13, 2014 2:32 pm
Contact:

How to switch between NVL and ADV mode

#1 Post by SegaOfPlaneptune » Wed Apr 27, 2016 7:00 pm

I've been looking around, but I still haven't been able to figure it out.
How exactly can you switch between NVL and ADV modes in Ren'Py?
I'm trying to make a game switches between both depending on scenes, but I have no idea how to do it.
Can anyone help?

User avatar
Zetsubou
Miko-Class Veteran
Posts: 513
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: How to switch between NVL and ADV mode

#2 Post by Zetsubou » Wed Apr 27, 2016 7:20 pm

It depends on the character who's speaking.
eg.

Code: Select all

define nvlChar = new Character(None, kind=nvl)
define advChar = new Character(None, kind=adv)

label start:

    nvlChar "My text comes up in NVL mode"
    advChar "Mine comes up in ADV mode"
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

Image

User avatar
SegaOfPlaneptune
Newbie
Posts: 10
Joined: Sat Dec 13, 2014 2:32 pm
Contact:

Re: How to switch between NVL and ADV mode

#3 Post by SegaOfPlaneptune » Wed Apr 27, 2016 7:26 pm

Zetsubou wrote:It depends on the character who's speaking.
eg.

Code: Select all

define nvlChar = new Character(None, kind=nvl)
define advChar = new Character(None, kind=adv)

label start:

    nvlChar "My text comes up in NVL mode"
    advChar "Mine comes up in ADV mode"
Okay, that's pretty easy to follow. But is there anyway to make the narration change back as well?

The start of my game is completely NVL in terms of narration and dialogue, but I want the following scene to be completely ADV for narration and dialogue as well.

User avatar
Zetsubou
Miko-Class Veteran
Posts: 513
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: How to switch between NVL and ADV mode

#4 Post by Zetsubou » Wed Apr 27, 2016 7:34 pm

Use different characters for these scenes.
Having None as the first parameter makes the character not have a name, so they're the same as the narrator.
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

Image

User avatar
SegaOfPlaneptune
Newbie
Posts: 10
Joined: Sat Dec 13, 2014 2:32 pm
Contact:

Re: How to switch between NVL and ADV mode

#5 Post by SegaOfPlaneptune » Wed Apr 27, 2016 7:53 pm

Okay I think I understand a little more now, but I'm still confused.

Could you perhaps give me an example?

User avatar
Zetsubou
Miko-Class Veteran
Posts: 513
Joined: Wed Mar 05, 2014 1:00 am
Completed: See my signature
Github: koroshiya
itch: zetsuboushita
Contact:

Re: How to switch between NVL and ADV mode

#6 Post by Zetsubou » Wed Apr 27, 2016 8:13 pm

Code: Select all

define nvlChar = new Character(None, kind=nvl)
define nvlSally = new Character("Sally", kind=nvl)

define sally = new Character("Sally", kind=adv)

label start:

    nvlChar "This is NVL mode narration."
    nvlChar "nvlChar has no name, so he's essentially a narrator."

    nvlSally "Hi, I'm Sally, and this is me talking in NVL mode."

    "Intro done. This is ADV narration"
    "No character needed. Narrator is adv by default."

    sally "Sally again! In ADV mode this time."
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails

Working on:
Sable's Grimoire 2

Image

User avatar
SegaOfPlaneptune
Newbie
Posts: 10
Joined: Sat Dec 13, 2014 2:32 pm
Contact:

Re: How to switch between NVL and ADV mode

#7 Post by SegaOfPlaneptune » Wed Apr 27, 2016 8:20 pm

Okay! Tested it out and now I finally get it!

Thank you so much for helping me with this!

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]