[SOLVED] Quotation mark flash?

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
Offworlder
Regular
Posts: 114
Joined: Mon Aug 20, 2018 6:33 pm
Contact:

[SOLVED] Quotation mark flash?

#1 Post by Offworlder »

This is a very small issue, but one that's been bugging me.
Essentially, I want the last line of dialogue to stay on-screen when choices appear following a click. Currently, I'm accomplishing this by repeating the dialogue after "menu:" and using the "{fast}" tag. Like so:

Code: Select all

show neth ssheepish with dissolve
n ".{w=0.2}.{w=0.2}.{w=0.2}I know that doesn't mean much to some."

menu:
    n ".{w=0.2}.{w=0.2}.{w=0.2}I know that doesn't mean much to some.{fast}"

    "I want to help, but...":
        jump whatswrong
This code basically works fine, but the end quotation mark in the dialogue disappears for a split second when the choice shows up.
To clarify, "n" is defined to have quotation marks in their dialogue by default.

Any and all help would be greatly appreciated!
Last edited by Offworlder on Sat Jan 05, 2019 4:02 am, edited 1 time in total.

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

Re: Quotation mark flash?

#2 Post by Imperf3kt »

Is there a compelling reason you want players to click to make the choice menu appear?
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
Offworlder
Regular
Posts: 114
Joined: Mon Aug 20, 2018 6:33 pm
Contact:

Re: Quotation mark flash?

#3 Post by Offworlder »

It's specifically because I want the choice(s) to appear AFTER the dialogue, rather than at the same time.
I ended up figuring out my own mistake, though. xD

The issue doesn't appear if I use manual quotation marks, but I had the "{fast}" tag in the wrong position.
Here's the correct syntax:

Code: Select all

show neth ssheepish with dissolve
n2 "\".{w=0.2}.{w=0.2}.{w=0.2}I know that doesn't mean much to some.\""

menu:
    n2 "\".{w=0.2}.{w=0.2}.{w=0.2}I know that doesn't mean much to some.\"{fast}"

    "I want to help, but...":
        jump whatswrong
Initially, I had my "{fast}" tag positioned directly at the end of the sentence, before the backslash.
Also, I did a bit of testing and the manual quotes technically only need to be placed on the second sentence. If a character is defined to use quotes by default, this structure will work as well:

Code: Select all

n ".{w=0.2}.{w=0.2}.{w=0.2}I know that doesn't mean much to some."

menu:
    n2 "\".{w=0.2}.{w=0.2}.{w=0.2}I know that doesn't mean much to some.\"{fast}"

    "I want to help, but...":
        jump whatswrong

Post Reply

Who is online

Users browsing this forum: No registered users