Character statements auto-span multiple clicks?

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
SuperbowserX
Veteran
Posts: 270
Joined: Sat Jan 07, 2017 3:09 pm
Contact:

Character statements auto-span multiple clicks?

#1 Post by SuperbowserX »

Suppose you had a line of code with a really long bit of dialogue that said:

Code: Select all

sean "Once upon a time, a novice programmer stumbled upon a tool that would lead to his first ever game creation. It was the visual novel production tool known as Ren'py. Using it, our novice programmer created the best game of all time, though he made the terrible mistake of using copyrighted backgrounds, artwork and songs without their respective owner's permission. Angered, as a result, the Programming Gods decided to curse the novice programmer with an incurable case of Carpal Tunnel Syndrome, leaving the programmer permanently incapable of typing more than a few letters before feeling intense pain. Saddened, the programmer committed suicide, and such is the end of the novice programmer's tale.
Now is there a way you can adjust the say screen or some other screen/module/function to automatically break this statement up into several screens, each requiring a click? For instance, suppose you set the character limit to 160. At the 160th character in the string, the text would automatically cut off, and the player would need to click the screen to automatically progress to the next 160 characters. And so on and so forth. This would allow you to write long strings without having to fiddle around with how you split them up into different statements and can remove the stress of trying to do guesswork to guess how nice-looking your text will look on screen if you are explaining some long backstory.

Any ideas on this?

Lutka
Newbie
Posts: 23
Joined: Mon Apr 24, 2017 11:13 am
Contact:

Re: Character statements auto-span multiple clicks?

#2 Post by Lutka »

Don't know if that is possible, but i have an idea about having to guess the amount of characters that would look good, one thing you could try is looking up the good amount of characters once, and then using the column number to always find that amount of characters.

At least in Editra v0.6.99 which is the default editor for ren'py, the column number is always shown at the bottom right corner

Post Reply

Who is online

Users browsing this forum: No registered users