Two window text box help

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
princessap7
Newbie
Posts: 8
Joined: Thu Jul 16, 2015 3:33 am
Contact:

Two window text box help

#1 Post by princessap7 » Wed Jul 13, 2016 11:12 am

fixed

User avatar
chocoberrie
Veteran
Posts: 254
Joined: Wed Jun 19, 2013 10:34 pm
Projects: Marshmallow Days
Contact:

Re: Two window text box help

#2 Post by chocoberrie » Wed Jul 13, 2016 11:40 am

Hmmm... The error says invalid syntax, which means something in the code was written incorrectly. I'm not sure why you have Character(_("name here"), code here) instead of define variable here = Character("name here", code here).

Try this:

Code: Select all

define pov = Character("[povname]", color="c8ffc8", show_two_window=True)

define c = Character("[Casey]", color="c8ffc8", show_two_window=True)
If you want the names of the characters to appear in brackets like [NAME], you could use who_prefix and who_suffix, like this (just make sure the font you're using has the brackets [] themselves or else they won't show up properly):

Code: Select all

define pov = Character("povname", color="c8ffc8", show_two_window=True, who_prefix="[", who_suffix="]")

define c = Character("Casey", color="c8ffc8", show_two_window=True, who_prefix="[", who_suffix="]")
Then, in the script, you can use pov and c to call to those characters when they have dialogue. Like this:

Code: Select all

c "I'm Casey."
pov "I'm another character."
I hope this helps! :)

Post Reply

Who is online

Users browsing this forum: _ticlock_