How did you do coding for unknown characters?

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
kara24601
Veteran
Posts: 427
Joined: Wed Oct 27, 2004 12:02 am
Projects: Numerous unfinished dreams await completion.
Location: USA
Contact:

How did you do coding for unknown characters?

#1 Post by kara24601 »

In Beautiful Music , the main character already knows the other character's names because they are famous rock stars.

In my other project , the PC isn't supposed to know the other character's name until after an introduction / mention ( much like you would not always know a person but learn of somebody's name in real life ) ....I've tried to go the route others have taken and have ??? show up as the "name" but whenever I would try that...no matter how I worded it ( either 'Unknown Person' or '???' ) ...it wouldn't work.

So , I'm now at a loss as to how others pulled that off with their games.
I did a search but it didn't come up with the type of topic / subject I was looking for so apoligies if anybody has brought this up before

Code: Select all

$ u = Character( '???'color="#330000", what_color="#fff")

Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

#2 Post by Jake »

Personally, '???' always seemed a little fake to me, but equally so did giving characters names before they introduce themselves.

My favourite option is to have a little portrait of the speaker next to the dialogue box (or some other visual cue to link dialogue to speaker), and no names displayed at all unless they're actually in dialogue, which is hopefully the way we're going for NaNo... but I can't remember how easy that is to do in Ren'Py...
Server error: user 'Jake' not found

kara24601
Veteran
Posts: 427
Joined: Wed Oct 27, 2004 12:02 am
Projects: Numerous unfinished dreams await completion.
Location: USA
Contact:

#3 Post by kara24601 »

Yeah , both ways are bad ,
but I'd rather have ??? show up where / when the main character
isn't supposed to know the name then it gets changed Yuki
or whatever the other character's name is , after introductions.

I currently don't have any graphics done for the game I'm thinking about where I want to use ??? so , at the moment , the "show a portrait instead of ???" is not an option plus that would be kinda weird

:lol:

( but that may be a route I would take anyway once I get graphics done or somebody else helps me with the graphics...hmmm... )

User avatar
papillon
Arbiter of the Internets
Posts: 4107
Joined: Tue Aug 26, 2003 4:37 am
Completed: lots; see website!
Projects: something mysterious involving yuri, usually
Organization: Hanako Games
Tumblr: hanakogames
Contact:

#4 Post by papillon »

'???' sticks out too much to me, I'm just being descriptive. If you don't know the names yet, they're Man, Tall Boy, Red Haired Boy.

kara24601
Veteran
Posts: 427
Joined: Wed Oct 27, 2004 12:02 am
Projects: Numerous unfinished dreams await completion.
Location: USA
Contact:

#5 Post by kara24601 »

That's a good way to do it too. Ok , so that's two votes against ???

But...still...how to do the coding for something like that...

thanks for your posts

sigmaxion
Regular
Posts: 35
Joined: Wed Jul 19, 2006 6:52 pm
Location: China
Contact:

#6 Post by sigmaxion »

Well, maybe I'm wrong, but I think you don't have to define a Character, you can use simple code like this:

Code: Select all

'???' "Hi, I'm an unknown guy..."
I'm in love, so I have no time for game making:)

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

#7 Post by monele »

sigmaxion is right, but if you really want to use a Character object :

Code: Select all

$ u = Character('???', color="#330000", what_color="#fff")
You forgot the comma after the name string.

Post Reply

Who is online

Users browsing this forum: Google [Bot], LuckyT