Self-Voice "sv" define customized?

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
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Self-Voice "sv" define customized?

#1 Post by wyverngem »

I want to customize the textbox that displays only when self-voicing is enabled. I've tried

Code: Select all

define sv = Character(None, window_background = "gui/tb.png")
However, there's a conflict because it shows when self-voicing isn't enabled.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Self-Voice "sv" define customized?

#2 Post by PyTom »

Sorry, which text box are you talking about?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Self-Voice "sv" define customized?

#3 Post by Imperf3kt »

I believe the notify that appears saying 'self voicing enabled'
Right?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: Self-Voice "sv" define customized?

#4 Post by wyverngem »

Code: Select all

Descriptive Text
Descriptive text is text that is displayed (and spoken) by the narrator if self-voicing is enabled. The text is not displayed if self-voicing is disabled. Self voicing text uses the sv variable, which is defined to be similar to a character.

sv = ...
A character-like object that uses the narrator to speak text if self-vocing is enabled.

For example:

e "Hang on, this is gonna be a bumpy ride!"

sv "And then the sun exploded..."

# A complex and exciting cut scene.
show event sun_exploding
pause 10
A self-voicing debug mode can be enabled by typing shift+alt+V. This will display the text that would be voiced on the screen for development purposes.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Self-Voice "sv" define customized?

#5 Post by PyTom »

Try:

Code: Select all

define sv = Character(None,  window_background = "gui/tb.png", condition="_preferences.self_voicing")
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: Self-Voice "sv" define customized?

#6 Post by wyverngem »

Perfect, thank you.

Post Reply

Who is online

Users browsing this forum: No registered users