Page 1 of 1

NVL dialog and normal dialog at the same time?

Posted: Sat Apr 19, 2008 2:44 pm
by Cart
Hello!

I have a question : is it possible to use both NVL dialogs and normal dialogs at the same time?
I'm using the NVL mode to simulate command lines on a computer (the screen is my background scene), but I'd like the main character to comment on what he's typing, but when he speaks with a Character (not a NVLCharacter), the NVL screen isn't displayed anymore and there is nothing on the "screen"...

can anyone help me? do you have an idea?
thanks!

Re: NVL dialog and normal dialog at the same time?

Posted: Sat Apr 19, 2008 4:24 pm
by monele
Sure, just declare different characters. Use "Character()" for regular VN style, and "NVLCharacter()" for NVL style. You might want to check the official documentation for the exact syntax but that should work ^^

Re: NVL dialog and normal dialog at the same time?

Posted: Sat Apr 19, 2008 4:41 pm
by Cart
Err... to give an exemple :

Code: Select all

init:
    $ computer = NVLCharacter('SAF48', what_prefix=': ')
    $ angel = Character('Angel', color="#c8ffc8")
    image bg screen = "screen.png"

label start:
    scene bg screen
    nvl clear
    computer "Access Denied"
    angel "How come?"
    return
You can't see the NVL text when the character (not the NVL one) is speaking... :(

Re: NVL dialog and normal dialog at the same time?

Posted: Sat Apr 19, 2008 11:13 pm
by akemicchi
I have a question : is it possible to use both NVL dialogs and normal dialogs at the same time?
Actually, as far as I know that's not possible. NVL dialogues and normal ADV dialogues don't stay on the screen when you switch to the other.

Instead of using NVL mode, maybe you could just make the computer screen's words an image and show it instead? You type the whole thing out and even crop unwanted parts with im.Crop... But it'll probably be annoying if you have a lot of dialogue screens where a Character speaks. ^^;

I guess another way is to make a new layer underneath the transient layer (the layer including the dialogue), and maybe over the master layer (the layer with all the backgrounds). With that, you simulate NVL mode with UI Functions such as ui.text, without having the screen be erased... But that's kinda hard and confusing to program, and I don't even know if that'll even work. xD;;

I think your best bet is to keep using NVL mode, but then replace the background with a screenshot of the NVL dialogue where the ADV mode Character will comment. :D

Re: NVL dialog and normal dialog at the same time?

Posted: Sun Apr 20, 2008 4:55 am
by Cart
Yeah, I was first using a lot of images then I told myself that maybe there was something else to do the trick... :P
Oh well... too bad... I guess I'll just use the crop function, thanks again !

Re: NVL dialog and normal dialog at the same time?

Posted: Sun Apr 20, 2008 11:27 am
by monele
Oh, sorry Cart, I didn't understand what you were looking for ^^;. If I had to do that, I'd also try something like what akemicchi says, with layers and all... but it *is* rather complex ^^;

Re: NVL dialog and normal dialog at the same time?

Posted: Tue Apr 22, 2008 9:06 am
by chronoluminaire
You could use "show text" to make Ren'Py treat the NVL-style text as an image, to put dialogue on top of it.

I thought there was a way to tell a Ren'Py Character to use a different layer so that their text doesn't get cleared out by a normal interaction, but it doesn't look like there is. So "show text" or images look like your options (unless you want to write some layers code yourself).