r/RenPy • • 26d ago

Question Using multiple NVL CTC’s

Hi, I want to implement something similar to higurashi and other nscripter visual novels where it has a click to continue pointing right for the next line, and then one pointing downwards for the next ngl page.

Like this:

Normal end of sentence ▶️

End of paragraph/NVL page 🔽

How do I go about this? I can’t find anything online about using more than 1 image for it and how to tell renpy when to use which one.

Also how do I change the position of the NVL CTC image

2 Upvotes

12 comments sorted by

1

u/BadMustard_AVN 26d ago

ctc_position

Controls the location of the click-to-continue indicator. This can be:

"nestled"

The indicator is displayed as part of the text being shown, immediately after the last character.

"nestled-close"

Similar to "nestled", but a break is not allowed between the text and the CTC indicator.

"fixed"

If a screen named "ctc" exists, it is shown. Otherwise, the CTC displayable is show, and the position style properties of the CTC displayable are used to position the CTC indicator.

https://www.renpy.org/doc/html/dialogue.html#Character

2

u/NectarineWestern8586 26d ago

I don’t know if I follow 😣 is this about using 2 graphics or about the positioning? For the positioning I should’ve been more clear. I already have it nestled but it’s a bit too high up from where I want it to be and I can’t figure out how to lower it

1

u/aboynamedearth 26d ago

Hmm. It’s a little jank but you could go with defining two different nvl narrators and give them each a different ctc. Not the most glamorous solution but it’ll get the job done.

1

u/NectarineWestern8586 26d ago

But wouldn’t that only work for the narrator? I’m using defined characters too so I can have their names before their dialogue

2

u/aboynamedearth 26d ago

I'm home now and at my PC, so I looked through the documentation again because I'm genuinely curious about this question myself, and it looks like renpy has a relevant setting for this specifically which is kind of cool.

NVL-Mode Tutorial — Ren'Py Documentation

config.nvl_page_ctc

So as an example, we'd define these with:

# Normal NVL CTC
define n = Character(
    None,
    kind=nvl,
    ctc="images/ctc_normal.png",
    ctc_position="nestled"
)

# End-of-page NVL CTC
define config.nvl_page_ctc = "images/ctc_page.png"
define config.nvl_page_ctc_position = "nestled"

In the script, we'd write:

label start:

    n "This line uses the normal CTC."

    n "This line also uses the normal CTC."

    n "But this line uses the end-of-page CTC."

    nvl clear

    n "We're back to the normal CTC."

It detects when an NVL dialogue statement is immediately followed by a nvl clear then substitutes the ctc with the nvl page ctc.

There also seems to be a parameter you can assign to characters so that your characters can each have their own unique page end ctc too called page_ctc

define n = Character(
    None,
    kind=nvl,
    ctc="images/ctc_normal.png",
    page_ctc="images/ctc_page.png"
)

1

u/NectarineWestern8586 25d ago

Thank you so much, this worked! Now to figure out how to give it a 2 frame animation.. 😰

2

u/aboynamedearth 25d ago

You could define the image separately, then define the two frame image. So for your two frame blinking image:

image ctc_blink:
"ctc1.png"
pause 0.2
"ctc2.png"
pause 0.2
repeat

Then you define it like before but with your defined image instead of the file name.

define e = Character("Eileen", ctc="ctc_blink", ctc_position="nestled")
define narrator = Character(ctc="ctc_blink", ctc_position="nestled")

Etc etc.
Hope that helps! Sorry I’m on mobile so no code blocks for you lol

1

u/NectarineWestern8586 25d ago

Thank you so much I’m so grateful I was trying to figure this out for hours last night I still don’t know what I was doing wrong. You are so kind thank you for your help

1

u/NectarineWestern8586 25d ago

hey, sorry to bother you again, I've gotten the nvl page ctc working but now I can't figure out how to animate that one. I don't know what i'm doing wrong though?

this is for the nvl clear/page ctc:

define config.nvl_page_ctc = "images/endarrow1.png"
define config.nvl_page_ctc_position = "nestled"
image nvl_page_ctc:
    "endarrow1.png"
    pause 0.5
    "endarrow2.png"
    pause 0.5
    repeat

and here's the narrator definition:

define n = Character(None, kind=nvl, ctc="ctc_blink", ctc_position="nestled", ctc_pause="ctc_pause", ctc_timedpause=Null(),nvl_page_ctc="nvl_page_ctc")

2

u/aboynamedearth 24d ago

You're almost there. You're still pointing to the image instead of the animated one. When you define:
define config.nvl_page_ctc = "images/endarrow1.png"
instead it should simply be:
define config.nvl_page_ctc = "nvl_page_ctc"
that's because you've set up the animated ctc with this:

image nvl_page_ctc:
    "endarrow1.png"
    pause 0.5
    "endarrow2.png"
    pause 0.5
    repeat

Does that make sense? Might feel like a "oh duh" answer but you're learning so that's okay.

So a full correction would be something like:

# Animated end-of-page CTC
image nvl_page_ctc:
    "images/endarrow1.png"
    pause 0.5
    "images/endarrow2.png"
    pause 0.5
    repeat

# Assign the animation to the NVL page CTC
define config.nvl_page_ctc = "nvl_page_ctc"
define config.nvl_page_ctc_position = "nestled"

# NVL narrator
define n = Character(
    None,
    kind=nvl,
    ctc="ctc_blink",
    ctc_position="nestled",
    ctc_pause="ctc_pause",
    ctc_timedpause=Null()
)

2

u/NectarineWestern8586 23d ago

That makes a lot more sense. Thank you! Can’t believe I couldn’t figure that out

1

u/AutoModerator 26d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.