Adding a CTC to undefined characters with name (not narrator)

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
emz911
Regular
Posts: 103
Joined: Fri Jun 23, 2017 2:23 pm
Contact:

Adding a CTC to undefined characters with name (not narrator)

#1 Post by emz911 » Mon Sep 02, 2019 9:55 am

Hi, I am giving the Click to Continue animation to all dialogues and characters like this:
define narrator = Character(ctc="ctc_blink", ctc_position="nestled")
⬆️This works fine for the narrator and all defined characters, but I can't find out how to give the same CTC to dialogues that are scripted like this:
"John" "Hello world."
I did not define a specific character for the above, because it does not have a side image to go with. It is also not the narrator because it has a name in the namebox. I just use two quotes side by side (like documented) to give an unimportant character a line of dialogue.
I am unable to give these types of "character" a CTC property because they are not defined; they're just a string turned into a name. I've searched everywhere and can't find a solution to this, please help! :| Would really appreciate.

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Projects: The Button Man
Organization: NILA
Github: hell-oh-world
Location: Philippines
Contact:

Re: Adding a CTC to undefined characters with name (not narrator)

#2 Post by hell_oh_world » Mon Sep 02, 2019 2:51 pm

emz911 wrote:
Mon Sep 02, 2019 9:55 am
Hi, I am giving the Click to Continue animation to all dialogues and characters like this:
define narrator = Character(ctc="ctc_blink", ctc_position="nestled")
⬆️This works fine for the narrator and all defined characters, but I can't find out how to give the same CTC to dialogues that are scripted like this:
"John" "Hello world."
I did not define a specific character for the above, because it does not have a side image to go with. It is also not the narrator because it has a name in the namebox. I just use two quotes side by side (like documented) to give an unimportant character a line of dialogue.
I am unable to give these types of "character" a CTC property because they are not defined; they're just a string turned into a name. I've searched everywhere and can't find a solution to this, please help! :| Would really appreciate.
But why not just define a character? Even in my vn, even if the characters are a little trivial I tend to make a Character object from it. And I guess its a good practice to always define your characters whether it is a minor or major one.

Post Reply

Who is online

Users browsing this forum: No registered users