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.
I have a chunk of prologue narrative being spoken by a different speaker than the protagonist. To help emphasize this the text is styled differently using a separate font:
"{=marcus_narration}Matters couldn’t get worse when folks started spreading stories about monsters roaming the scrubland.
A mountain lion was found gored with its head crushed flat like an elephant’s foot had done it.
Nearby trees were knocked over like some kid’s toys. Pastor Emmit said the End Times were here and we
should settle our affairs.{/}"
The resulting text shows the correct font, but the line spacing reverts to style.say_thought.line_spacing instead of style.marcus_narration.line_spacing. Am I overlooking something obvious here? Also, if there's a better method for managing multiple narrator styles I'd be grateful to know.
init:
$ d =Character(None)
label start:
d "This one doesn't have a name."
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.
Thanks, but the problem remains that characters based on (None) inherit the narrator line_spacing and while the font can be overridden, the line_spacing cannot.
I'm sort of confused as to why this is.
edit: Characters based on (None) inherit from style.say_dialogue.line_spacing not style.say_thought.line_spacing, but the point remains that I can't override the line spacing.
duanemoody wrote:Thanks, but the problem remains that characters based on (None) inherit the narrator line_spacing and while the font can be overridden, the line_spacing cannot.
Use what_line_spacing and font in the Character like so:
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.
Bam! This was the solution. Thanks a million and I'll read that section more closely. I'm coming from an HTML/CSS/JavaScript background so my understanding of how to override/overload is a little different from how Python/Ren'Py works.