Help of NVL text?

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
QueenModdy
Newbie
Posts: 6
Joined: Fri Feb 08, 2013 6:04 pm
Contact:

Help of NVL text?

#1 Post by QueenModdy » Fri Feb 08, 2013 6:08 pm

Hey,

I'm using NVL text for my story and all's going well..
but if I type in too much text without commanding NVL clear, the text just keeps going down the screen to where you can't read it and past that.

Is there some sort of code I can use that can tell when the window is filled with text so it can continue onto a new screen?
This kinda makes sense in my head so.. ask me to elaborate if you don't get what I mean.

Thanks so much!!

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Help of NVL text?

#2 Post by OokamiKasumi » Sat Feb 09, 2013 10:55 pm

QueenModdy wrote:Hey,

I'm using NVL text for my story and all's going well..
but if I type in too much text without commanding NVL clear, the text just keeps going down the screen to where you can't read it and past that.

Is there some sort of code I can use that can tell when the window is filled with text so it can continue onto a new screen?
This kinda makes sense in my head so.. ask me to elaborate if you don't get what I mean.

Thanks so much!!
What you are looking for is "nvl clear".

Unlike ADV mode, NVL mode does not automatically clear it's text when it gets to the bottom of the textbox. You must use nvl clear to manually set the textbox to clear for more text.

If you don't use nvl clear, not only will the text will run right off the bottom of the box, the next time you use nvl text all that text will pop right back up in your textbox.

Also...!

Use window hide when you are done with your NVL text.
-- If you don't use window hide the nvl box will STAY THERE empty of text, and covering your images.

I find it best just to simply type them both at the same time.
Code:

Code: Select all

    story2 "When you wish upon a star, your dreams come true."

    nvl clear
    window hide
There's a NVL Mode tutorial in the Ren'Py Cookbook section of the forum that covers this, and a bunch more.
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

User avatar
seldompie
Newbie
Posts: 13
Joined: Sat Nov 03, 2012 4:11 pm
Contact:

Re: Help of NVL text?

#3 Post by seldompie » Sat Feb 09, 2013 11:58 pm

I think QueenModdy's having the same problem as I do sometimes with nvl mode - it's not knowing how to clear the screen that's the problem, but being able to tell when it should be done. I like to have the screen pretty full before I trigger the next one, to save on clicking for the player, but there's no way of telling when coding when you've got a "screen full", other than experience and guesswork. I don't think there's an easy way around this though.

Hm, a thought - would it be possible to code in a scrollbar to the nvl window that'd activate automatically if the nvl window overflowed the screen? That'd solve the problem nicely. I'm still a renpy beginner though, so that's a bit beyond me!

QueenModdy
Newbie
Posts: 6
Joined: Fri Feb 08, 2013 6:04 pm
Contact:

Re: Help of NVL text?

#4 Post by QueenModdy » Sun Feb 10, 2013 2:01 am

I suspected that was the case-
now I have to go into the game and make sure the text doesn't run too far..
it'll take time, but that's just the way it is I guess..

at least we have the save+load features!

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Help of NVL text?

#5 Post by OokamiKasumi » Sun Feb 10, 2013 2:30 pm

seldompie wrote:I think QueenModdy's having the same problem as I do sometimes with nvl mode - it's not knowing how to clear the screen that's the problem, but being able to tell when it should be done. I like to have the screen pretty full before I trigger the next one, to save on clicking for the player, but there's no way of telling when coding when you've got a "screen full", other than experience and guesswork. I don't think there's an easy way around this though.
I use NVL Mode a lot, and the only way to be sure is to Play-test every single paragraph and add "nvl clear" when the text gets to the bottom of the box.
seldompie wrote:Hm, a thought - would it be possible to code in a scrollbar to the nvl window that'd activate automatically if the nvl window overflowed the screen? That'd solve the problem nicely. I'm still a renpy beginner though, so that's a bit beyond me!
You'd have to add UI functions to screens to make that happen, and those codes don't play well with each other.
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

Post Reply

Who is online

Users browsing this forum: Hojoo