[SOLVED] NVL mode question

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
Michiyo6918
Veteran
Posts: 262
Joined: Fri Nov 11, 2011 12:26 am
Projects: ╮(╯▽╰)╭
Location: Look behind you
Contact:

[SOLVED] NVL mode question

#1 Post by Michiyo6918 »

I have some questions regarding the NVL mode.

First, how can I have a box surrounded the text, somehow look like this. (I borrowed it from a different person...)

Second, how can I add side image to a NVL character?

Third, how can I make a dialog appears at once? Like... not the type writer style anymore, just a part of the game with dialog appears at once?
Last edited by Michiyo6918 on Wed Jul 04, 2012 2:38 am, edited 1 time in total.
Tumblr | DA | Honest Critique
“如果那个人是神。
他想渎神。
——【黑匣子】”

apricotorange
Veteran
Posts: 479
Joined: Tue Jun 05, 2012 2:01 am
Contact:

Re: NVL mode question

#2 Post by apricotorange »

Changing the appearance to look like that screenshot isn't too hard; it's just a matter of setting the appropriate styles on "nvl_window" and "nvl_entry". (Feel free to ask if you need more details here.)

For side images, see http://www.renpy.org/doc/html/side_image.html .

As for the text appearing all at once, that's the default unless you've changed config.default_text_cps to something other than 0...

User avatar
Michiyo6918
Veteran
Posts: 262
Joined: Fri Nov 11, 2011 12:26 am
Projects: ╮(╯▽╰)╭
Location: Look behind you
Contact:

Re: NVL mode question

#3 Post by Michiyo6918 »

Changing the appearance to look like that screenshot isn't too hard; it's just a matter of setting the appropriate styles on "nvl_window" and "nvl_entry". (Feel free to ask if you need more details here.)
I'm pretty blind right now... X_X so yeah, can you tell me the details of this?
I looked through this one already but still couldn't find out the solution. Can you show me the code of it? (I want the side image to show up before the dialog in NVL mode, like an avatar.)
Tumblr | DA | Honest Critique
“如果那个人是神。
他想渎神。
——【黑匣子】”

apricotorange
Veteran
Posts: 479
Joined: Tue Jun 05, 2012 2:01 am
Contact:

Re: NVL mode question

#4 Post by apricotorange »

Simple example of NVL window restyling (put in an init block):

Code: Select all

    style.nvl_window.background=None
    style.nvl_entry.background="#888"
    style.nvl_entry.xfill = True
Quick example of NVL side images (only one shows at a time):

Code: Select all

image side eileen = "sylvie_giggle_small.png"
define e = Character('Eileen', color="#c8ffc8", image="eileen", kind=nvl)
label start:
    e "You've created a new Ren'Py game."
    e "Once you add a story, pictures, and music, you can release it to the world!"
    return
Ren'Py doesn't really have proper support for putting a image next to each line, but the following will work:

Code: Select all

image eileen = "sylvie_giggle_small.png"
define e = Character('{image=eileen}Eileen', color="#c8ffc8", kind=nvl)
label start:
    e "You've created a new Ren'Py game."
    e "Once you add a story, pictures, and music, you can release it to the world!"
    return

User avatar
Michiyo6918
Veteran
Posts: 262
Joined: Fri Nov 11, 2011 12:26 am
Projects: ╮(╯▽╰)╭
Location: Look behind you
Contact:

Re: NVL mode question

#5 Post by Michiyo6918 »

The side image works perfectly, thank you :D

But can I ask you another question? Is it possible to add something like the show_two_window to nvl character?

I want the dialog to appear like this:

Code: Select all

[side image] [name]
Bla bla bla
Tumblr | DA | Honest Critique
“如果那个人是神。
他想渎神。
——【黑匣子】”

apricotorange
Veteran
Posts: 479
Joined: Tue Jun 05, 2012 2:01 am
Contact:

Re: NVL mode question

#6 Post by apricotorange »

Try going into "screen nvl" in screens.rpy in your project, and change where it says "has hbox" to "has vbox".

User avatar
Michiyo6918
Veteran
Posts: 262
Joined: Fri Nov 11, 2011 12:26 am
Projects: ╮(╯▽╰)╭
Location: Look behind you
Contact:

Re: NVL mode question

#7 Post by Michiyo6918 »

This is what I got after I change hbox to vbox:

Image

Any solution for this?
Tumblr | DA | Honest Critique
“如果那个人是神。
他想渎神。
——【黑匣子】”

apricotorange
Veteran
Posts: 479
Joined: Tue Jun 05, 2012 2:01 am
Contact:

Re: NVL mode question

#8 Post by apricotorange »

Try looking at http://www.renpy.org/doc/html/screens.html to see what you can do.

I'm guessing you want something like the following:

Code: Select all

        # Display dialogue.
        for who, what, who_id, what_id, window_id in dialogue:
            window:
                id window_id

                has hbox:
                    spacing 10

                if who is not None:
                    text who id who_id

                vbox:
                    null height 24
                    text what id what_id
Edit: Oh, err, wait, I see what you mean... the {image=} trick is really a hack, and it'll make the layout you want impossible. I'll take another look.

User avatar
Michiyo6918
Veteran
Posts: 262
Joined: Fri Nov 11, 2011 12:26 am
Projects: ╮(╯▽╰)╭
Location: Look behind you
Contact:

Re: NVL mode question

#9 Post by Michiyo6918 »

It's a hack? O_o

Oh well, if that's impossible then it's fine, really :) Thanks for helping me out until now! :lol:
Tumblr | DA | Honest Critique
“如果那个人是神。
他想渎神。
——【黑匣子】”

Uchiha Echinox
Newbie
Posts: 14
Joined: Fri Feb 13, 2015 9:17 am
Contact:

Re: NVL mode question

#10 Post by Uchiha Echinox »

It's a hack?

Post Reply

Who is online

Users browsing this forum: Google [Bot]